joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430a60
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
ret

Function at 0x4311f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8582
push eax
mov eax, 0x115c
mov dword fs:[0], esp
call fcn.00464bf0
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
push 0x1000
lea eax, [ebp - 0x1168]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x43135f
mov ebx, dword [ebp - 0x14]
xor esi, esi
shr ebx, 2
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x43135f
nop word [eax + eax]
push dword [ebp + esi*4 - 0x1168]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x431356
push 0x105
lea ecx, [ebp - 0x168]
push ecx
push 0
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x43134d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x60]
push eax
call fcn.0042eae0
mov ebx, eax
lea eax, [ebp - 0x168]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.0042e400
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0042eae0
mov edi, eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0042e730
push eax
mov ecx, edi
call fcn.0042e730
push eax
call fcn.00484700
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov edi, eax
cmp ecx, 0x10
jb 0x4312f1
inc ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.004046a0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
cmp eax, 0x10
jb 0x431318
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.004046a0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x431346
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.004046a0
test edi, edi
jne 0x431372
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jl 0x431250
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4314f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00484970
add esp, 0xc
mov dword [esp], 0x94
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x431536
jne 0x43152d
cmp dword [esp + 8], 1
jae 0x431536
xor al, al
add esp, 0x94
ret
mov al, 1
add esp, 0x94
ret

Function at 0x431620
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x431636
cmp eax, 0xffffffff
je 0x431636
mov al, 1
ret
xor al, al
ret
Function at 0x431640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x431656
test al, 0x10
jne 0x431656
mov al, 1
ret
xor al, al
ret

Function at 0x431660
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0042e720
push eax
call fcn.00431640
add esp, 4
test al, al
jne 0x431685
xor eax, eax
xor edx, edx
pop esi
add esp, 0xc
ret
push edi
push 0
push 0x20000000
push 3
push 0
push 7
push closesocket
mov ecx, esi
call fcn.0042e720
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4316b7
pop edi
xor eax, eax
xor edx, edx
pop esi
add esp, 0xc
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov ecx, 0x20
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
shld edx, eax, cl
shl eax, cl
mov ecx, edx
xor edx, edx
add eax, esi
pop edi
adc edx, ecx
pop esi
add esp, 0xc
ret
Function at 0x431710
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b85e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.0042e380
push 0x4e2a60
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0042f380
test al, al
je 0x4318a5
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [eax]
push 0x5c
lea ecx, [ebp + 8]
call fcn.0042ebc0
push 0x2f
lea ecx, [ebp + 8]
mov esi, eax
call fcn.0042ebc0
lea ecx, [ebp + 8]
cmp esi, eax
jae 0x431781
push 0x5c
jmp 0x431783
push 0x2f
call fcn.0042ebc0
lea esi, [eax + 1]
test esi, esi
jns 0x43179b
lea ecx, [ebp + 8]
call fcn.0042eac0
mov esi, eax
jmp 0x4317a1
je 0x4318fb
push esi
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp + 8]
call fcn.0042ec70
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0042e310
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0042e460
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x43181c
mov ecx, dword [ebp - 0x3c]
inc eax
cmp eax, 0x1000
jb 0x431813
test cl, 0x1f
jne 0x4318f6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4318f6
sub ecx, eax
cmp ecx, 4
jb 0x4318f6
cmp ecx, 0x23
ja 0x4318f6
mov ecx, eax
push ecx
call fcn.004539d0
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x431878
mov ecx, dword [ebp - 0x54]
inc eax
cmp eax, 0x1000
jb 0x43186f
test cl, 0x1f
jne 0x4318f6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4318f6
sub ecx, eax
cmp ecx, 4
jb 0x4318f6
cmp ecx, 0x23
ja 0x4318f6
mov ecx, eax
push ecx
call fcn.004539d0
add esp, 4
push 0
lea ecx, [ebp - 0x24]
call fcn.0042e720
push eax
call edi
push esi
push 0
lea ecx, [ebp + 8]
call fcn.0042ef50
push 0x4e2a60
lea ecx, [ebp + 8]
call fcn.0042f380
test al, al
jne 0x431760
mov bl, 1
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x4318bc
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.004046a0
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
cmp ecx, 0x10
jb 0x4318e3
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004046a0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0048d32d
xor bl, bl
jmp 0x4318a7

Function at 0x431e40
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x400
lea eax, [esp]
push 0x400
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp word [eax + 0xa], 4
je 0x431e6f
xor eax, eax
add esp, 0x400
ret
mov eax, dword [eax + 0xc]
add esp, 0x400
ret
Function at 0x4322c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 1
push 0
mov ecx, edi
call fcn.0042e720
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
je 0x432308
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 1
push 0
call fcn.0042e720
push eax
push reloc.WS2_32.dll_bind
call ebx
mov esi, eax
test esi, esi
jne 0x432387
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push 0
call fcn.0042e720
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x432387
lea eax, [esp + 0xc]
mov ecx, edi
push eax
push 1
push 0
call fcn.0042e720
push eax
push reloc.WS2_32.dll_bind
call ebx
mov esi, eax
test esi, esi
jne 0x432387
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push eax
call fcn.0042e720
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
pop esi
sete al
pop ebx
pop ecx
ret

Function at 0x432840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8715
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi + 0x48]
cmp eax, dword [ebp + 8]
jge 0x43287d
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x50], ebx
jne 0x4328d4
push dword [edi + 0x1c]
call fcn.00432d00
cmp dword [edi + 0x4c], ebx
je 0x432869
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x24]
push esi
push 0xffffffffffffffff
call dword [eax]
push dword [edi + 0x4c]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00490e71
push dword [edi + 0x4c]
mov ebx, eax
call fcn.0049a28d
add esp, 0x14
lea ecx, [edi + 0x24]
call fcn.00438070
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0x4e2a60
lea ecx, [ebp - 0x3c]
call fcn.00406d20
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.00404290
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.00432df0
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x432930
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.004046a0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
cmp eax, 0x10
jb 0x432957
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.004046a0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x432b40
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
push ebp
push esi
push edi
push 0xffffffffffffffff
mov dword [esp + 0x14], ecx
call dword [eax]
mov esi, dword [ebx + 0x54]
lea ebp, [ebx + 0x54]
mov edi, dword [ebp + 4]
cmp esi, edi
je 0x432bd2
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.00432d00
mov edx, dword [ebx + 0x4c]
test edx, edx
je 0x432bd2
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x432ba4
cmp dword [esi + 0x14], 0x10
jb 0x432b84
mov eax, dword [esi]
jmp 0x432b86
mov eax, esi
push edx
push ecx
push 1
push eax
call fcn.00490e71
push dword [ebx + 0x4c]
push 1
push 1
push 0x4bcf0c
call fcn.00490e71
add esp, 0x20
cmp dword [esi + 0x2c], 0x10
jb 0x432baf
mov eax, dword [esi + 0x18]
jmp 0x432bb2
lea eax, [esi + 0x18]
push dword [ebx + 0x4c]
push dword [esi + 0x28]
push 1
push eax
call fcn.00490e71
push dword [ebx + 0x4c]
call fcn.0049a28d
add esi, 0x30
add esp, 0x14
cmp esi, edi
jne 0x432b62
mov eax, dword [ebp]
cmp eax, dword [ebp + 4]
je 0x432bf1
push dword [esp + 0x10]
push ebp
push dword [ebp + 4]
push eax
call fcn.00405360
mov eax, dword [ebp]
add esp, 0x10
mov dword [ebp + 4], eax
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp fcn.00438070

Function at 0x432d00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8758
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
mov edi, ecx
cmp dword [edi + 0x4c], 0
je 0x432dd5
cmp dword [edi + 0x1c], 0xffffffff
je 0x432dd5
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x24]
push ebx
push esi
push 0xffffffffffffffff
call dword [eax]
mov esi, dword [ebp + 8]
test esi, esi
je 0x432dcb
push dword [edi + 0x4c]
call fcn.0048d98b
add esp, 4
cmp esi, eax
jge 0x432dcb
push dword [edi + 0x4c]
call fcn.0048dbbc
push str..bak
lea esi, [edi + 4]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0042f670
add esp, 0x10
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.0042e720
push eax
call fcn.0049a2e6
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.0042e730
push eax
mov ecx, esi
call fcn.0042e730
push eax
call fcn.0049a333
add esp, 8
mov ecx, esi
push dword [edi + 0x20]
call fcn.0042e730
push eax
call fcn.0048db2f
add esp, 8
mov dword [edi + 0x4c], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00403230
lea ecx, [edi + 0x24]
call fcn.00438070
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x432e70
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x1c]
call fcn.00432d00
cmp dword [esi + 0x4c], 0
je 0x432ebb
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
push edi
push 0xffffffffffffffff
call dword [eax]
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x432e9b
mov eax, dword [eax]
push dword [esi + 0x4c]
push ecx
push 1
push eax
call fcn.00490e71
push dword [esi + 0x4c]
call fcn.0049a28d
add esp, 0x14
lea ecx, [esi + 0x24]
call fcn.00438070
pop edi
pop esi
ret 4
Function at 0x437fb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8be9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
call fcn.00437a80
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
mov dword [esi], vtable.sync_o::mutex.0
call fcn.0042e720
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
test eax, eax
jne 0x438010
push str.CreateMutex
lea ecx, [esi + 4]
call fcn.004378e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x438032
push 0x4e2a60
lea ecx, [esi + 8]
call fcn.0042f380
test al, al
je 0x438032
mov byte [esi + 0x20], 1
push 0
push 0
push 0
push 0
push 4
push 6
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x438450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8c61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0043f7e0
mov dword [edi], vtable.asafe_thread.0
cmp byte [0x4ff474], 0
mov dword [ebp - 4], 0
jne 0x4384ba
lea ecx, [ebp - 0x7c]
call fcn.00438140
push eax
mov byte [ebp - 4], 1
call fcn.00438580
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00438240
cmp byte [0x4ff474], 0
je 0x43855a
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
push ebx
push dword [ebp + 8]
mov dword [edi + 0x4c], eax
call fcn.0042e3a0
push 0x28
mov byte [ebp - 4], 2
call fcn.00464239
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x43850d
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebx], edi
call fcn.0042e3a0
mov dword [ebx + 0x24], esi
pop esi
jmp 0x43850f
xor ebx, ebx
mov ecx, dword [ebp + 0x14]
mov edx, 4
mov byte [ebp - 4], 2
lea eax, [ecx + 8]
push eax
xor eax, eax
cmp byte [ecx + 4], al
cmovne eax, edx
push eax
push ebx
push 0x4382e0
push 0
push 0
call fcn.0049b1ba
add esp, 0x18
mov dword [edi + 8], eax
mov ecx, edi
call fcn.0043f6b0
mov eax, dword [ebp - 0x14]
pop ebx
cmp eax, 0x10
jb 0x43855a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x438be0
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov eax, dword [0x4ff4ec]
sub esp, 0x454
test eax, eax
je 0x438bf1
call eax
push esi
push edi
mov edi, dword [esp + 0x460]
mov ecx, dword [edi]
add ecx, 0x28
call fcn.00438070
mov ecx, dword [0x500bd8]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov byte [eax + 0x24], 1
mov eax, dword [edi + 0x24]
cmp eax, 2
jne 0x438cd5
push 0x400
lea eax, [esp + 0x60]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x438c93
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00484970
add esp, 0xc
mov dword [esp + 0x18], 0x44
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [edi + 0x20]
lea esi, [edi + 0xc]
cmp eax, 0x10
jb 0x438ca9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004046a0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x438cbf
mov esi, dword [esi]
push 0x28
push edi
mov byte [esi], 0
call fcn.0046426c
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea esi, [edi + 0xc]
cmp eax, 1
mov eax, dword [esi + 0x14]
jne 0x438d1c
cmp eax, 0x10
jb 0x438cf0
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004046a0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x438d06
mov esi, dword [esi]
push 0x28
push edi
mov byte [esi], 0
call fcn.0046426c
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
cmp eax, 0x10
jb 0x438d2c
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004046a0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x438cbf
jmp 0x438cbd
Function at 0x43a6b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.004400e0
mov dword [esi], vtable.tcp_socket.0
mov byte [esi + 0x3c], 1
mov eax, dword [0x4ff590]
test eax, eax
jne 0x43a6f5
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc dword [0x4ff590]
mov eax, esi
pop esi
add esp, 0x194
ret
inc eax
mov dword [0x4ff590], eax
mov eax, esi
pop esi
add esp, 0x194
ret

Function at 0x43a730
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8f48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov bh, byte [ebp + 8]
xor eax, eax
push esi
test bh, bh
mov esi, ecx
push edi
sete al
lea ecx, [ebp - 0x24]
push str.changing_socket_mode_to
mov dword [ebp + 8], eax
call fcn.0042e400
mov eax, str.non_blocking
mov dword [ebp - 4], 0
test bh, bh
lea ecx, [ebp - 0x24]
mov edi, str.blocking
cmove edi, eax
push edi
call fcn.0042f4c0
lea ecx, [ebp - 0x24]
call fcn.0042e730
push eax
lea eax, [ebp + 8]
push eax
push 0x8004667e
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
mov ecx, esi
call fcn.0043ac90
mov bl, al
test bl, bl
je 0x43a7cb
mov edx, dword [esi + 0x24]
test edx, edx
je 0x43a7c8
mov ecx, dword [edx]
push edi
push str.socket_mode_is_set_to__s_n
push edx
call dword [ecx + 0x18]
add esp, 0xc
mov byte [esi + 0x3c], bh
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x43a7e0
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.004046a0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x43a890
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push ebx
push esi
mov esi, dword [esp + 0x21c]
mov eax, 0x10624dd3
mul esi
push edi
shr edx, 6
mov edi, ecx
imul eax, edx, 0x3e8
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edx
push ecx
push 0
sub esi, eax
mov dword [esp + 0x124], 1
imul eax, esi, 0x3e8
lea ecx, [esp + 0x124]
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x28], eax
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x43a919
lea eax, [esp + 0x14]
push eax
push dword [edi + 0x38]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x43a919
xor bl, bl
jmp 0x43a91b
mov bl, 1
lea eax, [esp + 0x118]
push eax
push dword [edi + 0x38]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x43a941
test bl, bl
jne 0x43a941
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x210
ret 4
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x210
ret 4
Function at 0x43a950
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mul esi
push edi
shr edx, 6
mov ebx, ecx
imul eax, edx, 0x3e8
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], edx
mov edi, dword [ebx + 0x38]
mov dword [esp + 0x18], edi
sub esi, eax
imul eax, esi, 0x3e8
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
lea eax, [esp + 0x14]
push eax
push dword [ebx + 0x38]
call sub.WS2_32.dll___WSAFDIsSet
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x10c
ret 4

Function at 0x43ab00
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push esi
push edi
push dword [esp + 0x24]
mov eax, 2
mov edi, ecx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
call fcn.00430380
mov esi, dword [esp + 0x20]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
test esi, esi
je 0x43aba2
mov ecx, str.BROADCAST
mov eax, esi
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43ab60
test dl, dl
je 0x43ab5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43ab60
add eax, 2
add ecx, 2
test dl, dl
jne 0x43ab40
xor eax, eax
jmp 0x43ab65
sbb eax, eax
or eax, 1
test eax, eax
jne 0x43ab73
mov dword [esp + 0xc], 0xffffffff
jmp 0x43ab7e
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
push 0x10
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x24]
push 0
push dword [eax + 0xc]
push dword [eax + 8]
push dword [edi + 0x38]
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xc]
push dword [eax + 8]
push dword [edi + 0x38]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
add esp, 0x10
ret 0xc