joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f70
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xc]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x407fb0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x450620], esi
jle 0x407fc1
add dword [0x450620], 1
jmp 0x408001
push str.QuickTime.qts
call fcn.00402bf0
add esp, 4
test eax, eax
mov dword [0x450624], eax
jne 0x40801f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfffff7d3
mov eax, dword [0x450624]
test eax, eax
je 0x407ffc
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x450624], 0
call fcn.00407f50
test edi, edi
je 0x408013
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ax, si
pop esi
add esp, 0x100
ret
call fcn.00407ef0
movzx esi, ax
test si, si
jne 0x407fe2
mov edx, dword [esp + 0x10c]
push edx
call fcn.00407cf0
movzx esi, ax
add esp, 4
test si, si
jne 0x407fe2
add dword [0x450620], 1
jmp 0x408001

Function at 0x408050
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40808f
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x450620]
test eax, eax
jg 0x4080a4
mov dword [0x450620], 0
jmp 0x4080c7
sub eax, 1
test eax, eax
mov dword [0x450620], eax
jg 0x4080c7
call fcn.00407d00
call fcn.00407f50
mov edx, dword [0x450624]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x4080d9
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x100
ret

Function at 0x42610f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f2b4]
jne 0x426119
repz ret
jmp fcn.0042c445

Function at 0x4267e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x42680d
call fcn.004296c4
mov dword [eax], esi
call fcn.004296b1
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042a9e7
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4267e9
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42683c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004296d7
pop ecx
call fcn.004296b1
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x426863
test al, 1
je 0x426863
test byte [esp + 0xc], 2
je 0x426863
call fcn.004296c4
mov dword [eax], 5
call fcn.004296b1
mov dword [eax], 0xd
jmp 0x426833
xor eax, eax
pop esi
ret
Function at 0x42b478
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44fc18]
je 0x42b493
inc edi
cmp edi, 0x17
jb 0x42b484
cmp edi, 0x17
jae 0x42b613
push ebp
push 3
call fcn.0043af7e
cmp eax, 1
pop ecx
je 0x42b5df
push 3
call fcn.0043af7e
test eax, eax
pop ecx
jne 0x42b4c7
cmp dword [0x44f31c], 1
je 0x42b5df
cmp ebx, 0xfc
je 0x42b612
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x450858
push ebp
call fcn.0042c657
add esp, 0xc
test eax, eax
je 0x42b4fd
push esi
push esi
push esi
push esi
push esi
call fcn.0042a8b3
add esp, 0x14
push 0x104
mov esi, 0x450871
push esi
push 0
mov byte [0x450975], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42b541
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042c657
add esp, 0xc
test eax, eax
je 0x42b541
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042a8b3
add esp, 0x14
push esi
call fcn.0042dda0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42b586
push esi
call fcn.0042dda0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x450b6c
push 0x44b2c4
sub ecx, eax
push ecx
push eax
call fcn.00433306
add esp, 0x14
test eax, eax
je 0x42b586
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042a8b3
add esp, 0x14
jmp 0x42b588
xor esi, esi
push 0x44b2c0
push ebx
push ebp
call fcn.00433249
add esp, 0xc
test eax, eax
je 0x42b5a8
push esi
push esi
push esi
push esi
push esi
call fcn.0042a8b3
add esp, 0x14
push dword [edi*8 + 0x44fc1c]
push ebx
push ebp
call fcn.00433249
add esp, 0xc
test eax, eax
je 0x42b5ca
push esi
push esi
push esi
push esi
push esi
call fcn.0042a8b3
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043adc1
add esp, 0xc
jmp 0x42b612
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42b612
cmp ebp, 0xffffffff
je 0x42b612
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44fc1c]
push dword [esi]
call fcn.0042dda0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43adc1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00428cec
xor ebx, ebx
cmp dword [0x450ff0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43ae97
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43af77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44c614
push edi
call esi
cmp eax, ebx
je 0x43af77
push eax
call fcn.00428c7e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x450ff0], eax
call esi
push eax
call fcn.00428c7e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x450ff4], eax
call esi
push eax
call fcn.00428c7e
mov dword [0x450ff8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00425d7a
test eax, eax
pop ecx
pop ecx
je 0x43ae65
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a8b3
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43ae97
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00428c7e
cmp eax, ebx
pop ecx
mov dword [0x451000], eax
je 0x43ae97
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00428c7e
pop ecx
mov dword [0x450ffc], eax
mov eax, dword [0x450ffc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43af1c
cmp dword [0x451000], ecx
je 0x43af1c
push eax
call fcn.00428cf5
push dword [0x451000]
mov esi, eax
call fcn.00428cf5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43af1c
cmp edi, ebx
je 0x43af1c
call esi
cmp eax, ebx
je 0x43aee9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43aee9
test byte [ebp - 0x18], 1
jne 0x43af1c
lea eax, [ebp - 0x10]
push eax
call fcn.00425e29
test eax, eax
pop ecx
je 0x43af04
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a8b3
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43af13
or dword [ebp + 0x10], 0x200000
jmp 0x43af57
or dword [ebp + 0x10], 0x40000
jmp 0x43af57
mov eax, dword [0x450ff4]
cmp eax, dword [ebp - 8]
je 0x43af57
push eax
call fcn.00428cf5
cmp eax, ebx
pop ecx
je 0x43af57
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43af57
mov eax, dword [0x450ff8]
cmp eax, dword [ebp - 8]
je 0x43af57
push eax
call fcn.00428cf5
cmp eax, ebx
pop ecx
je 0x43af57
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x450ff0]
call fcn.00428cf5
cmp eax, ebx
pop ecx
je 0x43af77
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43af79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41be40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41be46
ret
Function at 0x409750
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x496cc5
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4b9658]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi], 0x4a2548
mov dword [esp + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, dword [0x4b8104]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x4b8104]
mov dword [esi + 0x40], ecx
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 6
call fcn.00460d70
lea ecx, [esi + 0x8c]
mov byte [esp + 0x18], 7
call fcn.00460d70
mov byte [esi + 0x38], bl
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 0x40a1e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x497858
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4b9658]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00409a00
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40a240
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00409c00
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00409a00
cmp dword [esp + 0x28], 8
jb 0x40a28b
mov ecx, dword [esp + 0x14]
push ecx
call int.00464539
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x40a830
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
push eax
call ebp
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x10], eax
jmp 0x40a864
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call ebp
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x40a860
mov ecx, dword [esp + 0x20]
mov eax, 0xe3779b90
mov dword [esp + 0x10], 0x10
jmp 0x40a890
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x1c]
mov edx, edi
shr edx, 5
add edx, ecx
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x14]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
sub dword [esp + 0x10], 1
jne 0x40a890
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [esp + 0x2c]
push esi
mov dword [ebx], eax
call edi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0x14
ret

Function at 0x40caa0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40cac0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x40cad6
push 0x80004005
call fcn.00408a70
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x40cb00
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x40cb18
push 0x80004005
call fcn.00408a70
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40cb25
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x40d260
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4b9658]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40d2af
xor ecx, ecx
mov ch, byte [esp + 0x1a4]
lea eax, [esp + 4]
push eax
mov cl, byte [esp + 0x1a4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
call int.00464500
add esp, 0x194
ret
Function at 0x40dd30
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4b9658]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40dd9e
test ecx, ecx
je 0x40dd90
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40ddac
test ecx, ecx
je 0x40de51
push ecx
jmp 0x40de4b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40de1e
jmp 0x40dde0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0040dd30
mov edi, eax
test edi, edi
jne 0x40de6d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40dde0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40de35
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40de51
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call int.00464500
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40de7c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40de53

Function at 0x40e4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49705b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b9658]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 0xc]
mov dword [edi + 4], 0
mov ecx, esi
mov dword [edi], 0x4a2ed0
call fcn.0041c900
mov eax, dword [esp + 0x20]
mov dword [esi], 0x4a2e64
mov dword [esi + 4], 0x4a2e50
mov dword [esi + 8], 0x4a2e30
mov dword [esi + 0x30], 0x4a2df4
mov dword [esi + 0x34], 0x4a2dcc
mov dword [esi + 0x38], eax
mov ecx, dword [0x4bba6c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [esp + 0x18], 0
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4124f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4975d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b9658]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x4bb628]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x41257d
call fcn.0040c990
mov esi, eax
jmp 0x412665
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x412599
call fcn.0040c990
jmp 0x41265c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x4125b2
call fcn.0040c990
jmp 0x41265c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x4125e8
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x4125d6
lea ecx, [ebp]
call fcn.0040d3c0
lea ecx, [ebp - 0x1c]
call fcn.0040d330
mov eax, 0x8007000e
jmp 0x412682
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040eff0
mov dword [ebp - 4], 1
jmp 0x412611
mov ebx, dword [ebp]
test ebx, ebx
jne 0x41261f
mov esi, 0x8007000e
jmp 0x41265e
call dword [0x4bb628]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x412640
call fcn.0040c990
jmp 0x41265c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00411560
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x412680
lea ecx, [ebp]
call fcn.0040d3c0
jmp 0x412680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call int.00464500
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4976c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b9658]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00404930
mov dword [esi], 0x4a854c
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
xor edx, edx
mov dword [esi + 0x2c], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
lea eax, [edi + 0x30]
push edx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edx
push eax
mov dword [esp + 0x24], edx
mov byte [ecx + 4], dl
call fcn.00404280
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x41b910
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
push 0xffffffffffffffff
push 0
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
lea edx, [esp + 0xc]
push edx
push 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x4bbb88
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
push 0
je 0x41b961
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
add esp, 8
ret
mov edx, dword [esi + 4]
push edx
push 0x4477d0
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
add esp, 8
ret
Function at 0x43fd60
Capabilities:
Access peb ldr_data
Get ntdll base address
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x49afd4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b9658]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x28]
mov dword [esi], 0x4a4024
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x65
mov dword [esi + 0x18], 0x12dd668
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], 0x34
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov edx, 1
mov dword [esi + 0x20], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x4018], eax
mov dword [esi + 0x401c], eax
mov dword [esi + 0x4020], eax
mov dword [esi + 0x4028], eax
mov dword [esi + 0x402c], eax
mov dword [esi + 0x4030], eax
cmp ecx, 0xffffffff
mov eax, 2
mov byte [esp + 0x1c], al
je 0x43fe7a
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0xc]
push 0x8004667e
push edx
mov dword [esi + 0x10], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
mov dword [esp + 0x24], 0x10000
je 0x43fe6d
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x28]
push eax
push 0x1002
push 0xffff
push edi
call ebx
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x1001
push 0xffff
push edi
call ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push esi
push edx
call fcn.0043f3b0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8