joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4080bf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x28]
mov esi, dword [0x412d64]
mov edi, esi
add edi, 0x5dc
mov dword [0x412d64], edi
mov edi, esi
add edi, 0xffffda0c
mov dword [0x412d60], edi
mov byte [ebp - 0x28], 0x56
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], esi
mov eax, 1
mov dword [ebp - 0x3c], eax
jmp 0x40806e
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax + 0x4091cc]
mov dl, byte [eax + str.Yy3L8]
sub dl, cl
mov byte [ebp + eax - 0x28], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x3c], eax
jne 0x40806e
mov eax, dword [ebp - 0x38]
add eax, 0xfffe5481
mov dword [0x412d60], eax
mov dword [0x412d64], 0x56e
call fcn.00408b01
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.004075ed
xor ecx, ecx
mov dword [0x412d60], 0x52b
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
je 0x40817a
mov eax, dword [ebp - 0x40]
mov dword [0x412d64], 0x254f
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x48], eax
call fcn.00407df8
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x24], ecx
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0xc], ecx
mov dword [0x412d60], 0xfde
cmp ecx, 0
mov dword [ebp - 0x44], eax
je 0x40817a
mov eax, dword [ebp - 0x48]
add eax, 0x1c74
mov dword [ebp - 0x4c], eax
mov dword [0x412d60], 0x8a2
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x54
pop esi
pop edi
pop ebp
ret
Function at 0x4081bd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x412d68], 0
mov dword [0x412d6c], 0
mov dword [0x412d78], 0
mov edi, dword [0x412d64]
mov ebx, edi
add ebx, 0xffffee2e
mov dword [0x412d60], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edi
je 0x40835b
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
add eax, 1
mov edi, ecx
add edi, 1
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x412d68], edx
mov dword [0x412d64], 0x8b0
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x412d6c], edx
mov dword [0x412d60], 0xcf9
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x3c]
mov cl, byte [ecx + esi]
mov byte [0x412d70], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x412d60]
add edx, 0xffffe9d3
mov dword [0x412d60], edx
mov cl, byte [0x412d70]
mov edx, dword [0x412d6c]
mov byte [ebx + edx], cl
mov edx, dword [0x412d68]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x412d6c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov edx, dword [0x412d64]
mov esi, edx
add esi, 0xfa9
mov dword [0x412d64], esi
and ecx, 0xff
mov dword [0x412d78], ecx
mov dword [0x412d60], 0x9c1
mov cl, byte [ebx + ecx]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x38]
mov ch, byte [esi + ebx]
add edx, 0x2cfe
mov dword [0x412d60], edx
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x40], edi
je 0x408353
mov eax, dword [0x412d68]
mov dword [ebp - 0x44], eax
mov eax, dword [0x412d6c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
jmp 0x408237
mov eax, dword [0x412d64]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, 0xffffdd00
mov dword [0x412d60], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4083dd
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [0x412d60]
add edx, 0xffffe428
mov dword [0x412d60], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x408464
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [0x412d64], 0x14b4
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
jne 0x408522
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dx, word [eax + ecx*2 - 0x18]
mov word [ebp - 0x1e], dx
xor eax, eax
mov cx, word [ebp - 0x1e]
cmp cx, 0x6f
mov dword [ebp - 0x1c], eax
je 0x4084a0
jmp 0x408522
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], edx
je 0x40841b
mov dword [0x412d60], 0x1d7
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x408464
jmp 0x40841b
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff5
mov dword [ebp - 0x28], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2], 0x61
mov dword [ebp - 0x1c], eax
jne 0x408522
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x1c], eax
jne 0x408522
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x1c], eax
jne 0x408522
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x408522
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x408522
mov dword [0x412d64], 0x1add
mov eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x408522
mov eax, dword [ebp - 0x1c]
add esp, 0x28
pop ebp
ret
Function at 0x408999
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.0040744a
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov dword [0x412d60], 0x2545
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x4089df
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x412d64], 0x1921
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov edi, dword [edx + esi + 0x18]
cmp edi, 0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
je 0x408af6
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x30]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x408aa0
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x408a4f
mov al, byte [ebp - 0x52]
test al, 1
jne 0x408ad3
jmp 0x408aa9
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov edx, dword [ebp - 0x40]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jb 0x408a35
jmp 0x408af6
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov dword [0x412d64], 0x2da6
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4011f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x612412
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x786f54]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x1c]
call sub.SCL.dll_Ordinal_9804
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], 0
call sub.SCL.dll_Ordinal_9804
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 1
call sub.SCL.dll_Ordinal_9804
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 2
call sub.SCL.dll_Ordinal_9804
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 3
call sub.SCL.dll_Ordinal_9804
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 4
call sub.SCL.dll_Ordinal_9804
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 5
call sub.SCL.dll_Ordinal_9804
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x401290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x612472
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x786f54]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], 5
call sub.SCL.dll_Ordinal_9807
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 4
call sub.SCL.dll_Ordinal_9807
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 3
call sub.SCL.dll_Ordinal_9807
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 2
call sub.SCL.dll_Ordinal_9807
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 1
call sub.SCL.dll_Ordinal_9807
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 0
call sub.SCL.dll_Ordinal_9807
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.SCL.dll_Ordinal_9807
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x41da20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x61688b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x786f54]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
fldz
xor ebx, ebx
fst dword [esi + 0x30]
push 0x1c
fst dword [esi + 0x2c]
mov dword [esi + 8], ebx
fst dword [esi + 0x38]
mov dword [esi + 0xc], ebx
fstp dword [esi + 0x34]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x20], 0xff00ff00
mov dword [esi + 0x24], 0xff00ffff
mov dword [esi + 0x28], 0xff000000
mov byte [esi], bl
call sub.SCL.dll_Ordinal_5366
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x41daa0
mov ecx, eax
call sub.SCL.dll_Ordinal_4927
jmp 0x41daa2
xor eax, eax
mov dword [esi + 0x3c], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x18], 0xffffffff
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x428420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x617690
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x786f54]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call sub.SCL.dll_Ordinal_9804
push str.M7_EmuSmw7.dll
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
call sub.SCL.dll_Ordinal_9806
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x24], 1
call fcn.004d8420
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x30], 2
call sub.SCL.dll_Ordinal_9839
add esp, 0x10
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call sub.SCL.dll_Ordinal_9808
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call sub.SCL.dll_Ordinal_9807
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call sub.SCL.dll_Ordinal_9807
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call sub.SCL.dll_Ordinal_9807
lea eax, [esp + 8]
push eax
call fcn.00439fe0
add esp, 4
lea ecx, [esp + 8]
mov dword [esi + 0x30], eax
mov dword [esp + 0x20], 0xffffffff
call sub.SCL.dll_Ordinal_9807
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
Function at 0x436410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x618e50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x786f54]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [esi + 0x68]
xor edi, edi
cmp eax, edi
je 0x4365b1
mov eax, dword [eax + 0x70]
cmp eax, edi
je 0x4365b1
movzx ecx, word [ebp + 8]
mov edx, dword [esi + 0x5c]
push ecx
push edx
call eax
movzx eax, ax
add esp, 8
cmp ax, di
je 0x4365b1
mov eax, dword [ebp + 0xc]
cmp dword [eax], edi
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edi
jbe 0x436552
mov edx, dword [ebx]
push edx
lea ecx, [esp + 0x28]
call sub.SCL.dll_Ordinal_7749
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0
call sub.SCL.dll_Ordinal_7785
mov eax, dword [esp + 0x28]
add eax, 0xd
mov edi, str.content_length
mov esi, eax
mov ecx, 0xf
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x43650b
mov esi, eax
mov edi, str.content_size
mov ecx, 0xd
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x43650b
add dword [esp + 0x14], 4
lea ecx, [esp + 0x24]
add ebx, 4
mov dword [esp + 0x38], 0xffffffff
call sub.SCL.dll_Ordinal_7754
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xc]
add eax, 1
cmp eax, dword [ecx]
mov dword [esp + 0x1c], eax
jb 0x43648d
mov esi, dword [esp + 0x18]
mov edi, 0x2000
jmp 0x43655d
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x20]
call sub.SCL.dll_Ordinal_7749
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call sub.SCL.dll_Ordinal_7718
lea ecx, [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x38], 0
call sub.SCL.dll_Ordinal_7754
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call sub.SCL.dll_Ordinal_7754
test edi, edi
jge 0x436559
mov esi, dword [esp + 0x18]
mov edi, 0x2000
jmp 0x43655d
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x60]
cmp dword [eax + 4], edi
jae 0x436581
mov ecx, dword [eax]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
push edi
call fcn.00610aae
mov edx, dword [esi + 0x60]
mov dword [edx], eax
mov eax, dword [esi + 0x60]
add esp, 8
mov dword [eax + 4], edi
mov ecx, dword [esi + 0x60]
xor eax, eax
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x60]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [esi + 0x60]
mov word [eax], 1
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d960
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
xor edx, edx
test al, al
mov ecx, esi
je 0x43d986
nop
cmp al, 0x2e
jne 0x43d977
add edx, 1
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x43d970
cmp edx, 3
je 0x43d98c
xor eax, eax
pop esi
ret 8
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x43d986
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, 1
pop esi
ret 8

Function at 0x43da20
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x43dac5
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x43da95
cmp word [ecx + 0xa], 4
jne 0x43da95
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x43da95
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.0043d9b0
test eax, eax
mov dword [esi], eax
je 0x43dab9
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x43da70
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call dword [sym.imp.MSVCR80.dll_strncpy_s]
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x43dad5.11001
jmp dword [eax*4 + 0x43daf8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x43e340
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x786f54]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x787830], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x43dd90
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x43e080
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0043dd40
je 0x43e3b2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x764f60]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00610c76
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x43e4c0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll_strcpy_s]
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call edi
mov ebx, dword [sym.imp.MSVCR80.dll_strcat_s]
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call ebp
mov esi, eax
test esi, esi
je 0x43e42f
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x43e47f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call edi
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call ebx
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x43e4bc
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x43e485
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43e4bc
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x43e476
add edi, 1
cmp edi, 3
jl 0x43e487
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x764f60], edx
mov dword [0x764f68], eax
mov dword [fcn.0043dd40], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x764f60]
xor ecx, esp
mov dword [0x787830], 1
call fcn.00610c76
add esp, 0x230
ret 4

Function at 0x43e590
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x786f54]
xor eax, esp
mov dword [esp + 0x190], eax
cmp dword [0x787810], 1
je 0x43e5fb
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x43e5fb
mov ax, word [esp]
cmp al, 1
jne 0x43e5eb
cmp ah, al
jne 0x43e5eb
mov dword [0x787810], 1
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00610c76
add esp, 0x194
ret
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov dword [0x787810], 2
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00610c76
add esp, 0x194
ret
Function at 0x441ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61a1d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x786f54]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.MCURLStreamHandler.0
mov al, byte [esi + 8]
and al, 6
cmp al, 4
mov dword [esp + 0x14], 1
je 0x441b24
call fcn.00441940
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0
call sub.SCL.dll_Ordinal_1814
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call sub.SCL.dll_Ordinal_5710
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x444ed0
Capabilities:
Get common file path
Get file size
Read file via mapping

Disassembly:
sub esp, 0x604
mov eax, dword [0x786f54]
xor eax, esp
mov dword [esp + 0x600], eax
push ebx
mov ebx, ecx
cmp dword [ebx], 0xffffffff
push esi
jne 0x445038
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 8]
mov word [esp + 0x208], 0
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x444f11
push edi
lea edi, [esp + 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x444f30
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x444f56
push 0
mov ecx, 0xc
mov esi, str._system32_drivers_gm.dls
rep movsd dword es:[edi], dword [esi]
push 0
push 3
push 0
push 1
push closesocket
lea ecx, [esp + 0x224]
push ecx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
pop edi
jne 0x444fb5
mov ecx, ebx
call fcn.004433f0
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x600]
xor ecx, esp
call fcn.00610c76
add esp, 0x604
ret
push str.GMMIDIDLS
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [ebx + 4], eax
je 0x444f95
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebx + 8], eax
je 0x444f95
mov edx, dword [ebx]
push 0
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
add eax, esi
push str.RIFF
push esi
mov esi, dword [sym.imp.MSVCR80.dll_strncmp]
mov dword [ebx + 0xc], eax
call esi
add esp, 0xc
test eax, eax
jne 0x444f95
mov eax, dword [ebx + 8]
push 4
add eax, 8
push str.DLS
push eax
call esi
add esp, 0xc
test eax, eax
mov ecx, ebx
jne 0x444f97
call fcn.00443f10
mov ecx, ebx
call fcn.00444d20
mov ecx, dword [esp + 0x608]
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00610c76
add esp, 0x604
ret