joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401246
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x402a10
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x401276
push 0x10
push 0
push str.Cannot_open_physical_device_or_device_error__no_administrator_rights__
push edi
call dword [sym.imp.user32.dll_MessageBoxA]
ret
push esi
mov esi, eax
push eax
mov eax, esp
push 0
push eax
push 0x200
push 0x402e10
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40129f
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop eax
pop esi
jmp 0x401265
push esi
push edi
mov esi, 0x402780
mov edi, 0x402e10
mov ecx, 0x1b8
rep movsb byte es:[edi], byte [esi]
mov al, byte [edi + 6]
or al, byte [edi + 0x16]
or al, byte [edi + 0x26]
or al, byte [edi + 0x36]
test al, al
js 0x4012c6
or byte [edi + 6], 0x80
pop edi
pop esi
push 0
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
test eax, eax
jne 0x401294
mov eax, esp
push 0
push eax
push 0x200
push 0x402e10
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x401294
cmp dword [esp], 0x200
jne 0x401294
push 0x40
push str.Success
push str.Standard_MBR_has_been_installed
push edi
call dword [sym.imp.user32.dll_MessageBoxA]
push 0
call dword [sym.imp.user32.dll_PostQuitMessage]
pop eax
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
ret
Function at 0x4013d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push 0x498508
push 0x3ed
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401406
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40140d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x401423
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.004639b8
add esp, 4
mov edi, eax
mov eax, dword [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.004690f0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.004690f0
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
test eax, eax
je 0x4014a0
mov edx, dword [ebp - 8]
push edx
mov esi, eax
call fcn.00401650
push edi
mov esi, eax
call fcn.00464da9
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
call fcn.00464da9
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401b50
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 8], edi
call fcn.004827a0
mov dword [esp + 0xc], eax
test edi, edi
je 0x401b90
lea eax, [esp + 8]
push eax
mov ecx, 0x498160
call fcn.004019f0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
mov dword [ebp - 0x808], 0
push ecx
mov word [ebp - 0x804], ax
call fcn.00469070
add esp, 0xc
lea edx, [ebp - 0x80c]
push edx
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x808]
push ecx
push str.InstallDir
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4020e4
cmp dword [ebp - 0x808], 1
jne 0x4020e4
push esi
lea ecx, [ebp - 0x804]
call fcn.0040bb60
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
sub eax, 0x10
call fcn.0040ca00
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
call fcn.00464d49
mov esp, ebp
pop ebp
ret
Function at 0x4023a0
Capabilities:
Write file on windows

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x4023a8
mov eax, dword [eax]
push esi
push 0x4981b8
push eax
call fcn.004657ee
mov esi, eax
add esp, 8
test esi, esi
jne 0x4023c1
xor al, al
pop esi
ret
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x4023ce
mov eax, dword [edi]
jmp 0x4023d0
mov eax, edi
push esi
push ecx
push 1
push eax
call fcn.004659a3
push esi
call fcn.00465a8a
add esp, 0x14
mov al, 1
pop esi
ret

Function at 0x404d80
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, eax
mov ecx, dword [esi + 0x14c]
push edi
test ecx, ecx
je 0x404db6
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea eax, [esi + 0x100]
mov dword [esi + 0x14c], 0
cmp dword [eax + 0x14], 8
jb 0x404daf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp dword [esi + 0x6f4], 8
lea ebx, [esi + 0x6e0]
jb 0x404dd1
mov eax, dword [ebx]
jmp 0x404dd3
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x404e14
cmp eax, 2
je 0x404e14
cmp eax, 3
je 0x404e14
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp dword [ebx + 0x14], 8
jb 0x404e03
mov eax, dword [ebx]
jmp 0x404e05
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
je 0x404de2
pop edi
pop esi
pop ebx
ret
Function at 0x405280
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e746
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x1fe
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
push ecx
mov dword [0x4b5c9c], 1
mov dword [edi + 0x1f4], ebx
mov word [ebp - 0x210], ax
call fcn.00469070
add esp, 0xc
push 0x200
lea edx, [ebp - 0x210]
push edx
push 0x6f
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
jmp 0x405300
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405300
sub eax, edx
sar eax, 1
push eax
lea esi, [edi + 0x3c]
lea eax, [ebp - 0x210]
call fcn.00412480
mov eax, 1
cmp dword [edi + 0x11c], eax
jne 0x40533d
mov byte [edi + 0x29c], bl
mov byte [edi + 0x27c], bl
mov dword [edi + 0x120], eax
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x12
push eax
call esi
mov ecx, dword [edi + 4]
push 0x11
push ecx
call esi
mov edx, dword [edi + 4]
push 0x10
push edx
call esi
lea eax, [ebp - 0x22c]
push str.download_failed__
lea ebx, [edi + 0x6a8]
push eax
call fcn.0040e540
push eax
mov edx, 0x498330
lea esi, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.0040e9f0
add esp, 0xc
mov ecx, eax
mov ebx, edi
mov byte [ebp - 4], 1
call fcn.00404e20
mov esi, 0x10
cmp dword [ebp - 0x234], esi
jb 0x4053b6
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.00464d3e
add esp, 4
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], ebx
mov byte [ebp - 0x248], bl
cmp dword [ebp - 0x218], esi
jb 0x4053ec
mov edx, dword [ebp - 0x22c]
push edx
call fcn.00464d3e
add esp, 4
cmp dword [edi + 0x11c], 2
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
jne 0x405445
push 1
mov esi, edi
call fcn.004051f0
mov eax, dword [edi + 0x628]
cmp eax, 0xffffffff
je 0x405430
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x628], 0xffffffff
mov eax, edi
call fcn.00404d80
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [edi + 4]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret
Function at 0x407070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
push 0x20
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x14]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x11c]
test eax, eax
jne 0x4070e8
call fcn.00406750
jmp 0x4070f2
cmp eax, 1
jne 0x4070f2
call fcn.00406a40
lea ecx, [esi + 0x71c]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [ebp - 0x18]
push edx
push 0
push esi
push 0x4023f0
push 0
push 0
mov byte [esi + 0x718], 0
mov dword [ebp - 0x18], 0
mov dword [esi + 0x124], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x124], eax
mov eax, dword [esi + 0x11c]
test eax, eax
jne 0x40716f
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push eax
mov eax, dword [esi + 4]
push 0x7d0
push 0x10
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 0x32
push 0x11
push ecx
call edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x407187
mov edx, dword [esi + 4]
push 0
push 0x3e8
push 0x12
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00464d49
mov esp, ebp
pop ebp
ret
Function at 0x40a8f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40a91c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.004690f0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 4]
push 0x10
mov dword [ebp - 8], ecx
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40a979
mov edx, dword [ebp - 8]
lea eax, [esi + 4]
push eax
push edx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x40a97b
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab40
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48e690
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4ad658]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push esi
mov eax, dword [0x4ad658]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x40
lea ecx, [esp + 0x2c]
push 0
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x44
call fcn.00469070
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x98]
xor edx, edx
push str.execute_installer__
lea ebx, [edi + 0x6a8]
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x64], 1
mov word [esp + 0x68], dx
call fcn.0040e540
push eax
mov edx, 0x498330
lea esi, [esp + 0x88]
mov dword [esp + 0xd0], 0
call fcn.0040e9f0
add esp, 0x18
mov ecx, eax
mov ebx, edi
mov byte [esp + 0xb8], 1
call fcn.00404e20
mov esi, 0x10
cmp dword [esp + 0x84], esi
jb 0x40ac25
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00464d3e
add esp, 4
xor ebx, ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp dword [esp + 0xa0], esi
jb 0x40ac56
mov edx, dword [esp + 0x8c]
push edx
call fcn.00464d3e
add esp, 4
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00464d49
mov esp, ebp
pop ebp
ret 4

Function at 0x40acc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48eb68
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ad05
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [esi]
push eax
push str.__s___S__DesktopIconState1__FastIconState1
lea edi, [ebp - 0x10]
call fcn.0040e610
mov ecx, edi
mov edi, dword [ebp + 8]
add esp, 8
push ecx
call fcn.0040ab40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ad65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b1b0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48edf8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x278]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
lea ebx, [esi + 0x278]
push 0
push eax
call edi
mov ecx, dword [esi + 0x274]
push 0
push ecx
call edi
mov eax, dword [esi + 4]
push 2
push 0x122
push 0x23a
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esi + 0x1f4], 3
mov dword [esi + 0x120], 5
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00412320
mov edi, 0x4afb78
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.0040bda0
add edi, 4
cmp edi, 0x4afbbc
jl 0x40b257
lea eax, [ebp - 0x10]
push eax
call fcn.0040bc00
mov edi, dword [ebp - 0x10]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b280
sub eax, edx
sar eax, 1
push eax
add esi, 0x32c
mov eax, edi
call fcn.00412480
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
push 0
push 0x64
push 0x13
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
lea edx, [ebp - 0x14]
push edx
push 0
push esi
push 0x40b000
push 0
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c230
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [0x4ad658]
xor eax, esp
mov dword [esp + 0x19c], eax
push 0x4b5c68
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40c273
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x4b5c6c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 0xc], 0
je 0x40c2a4
push 0
push 0x4b5c6c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
je 0x40c2a4
mov dword [esp], eax
call fcn.004827a0
lea ecx, [esp]
push ecx
mov ecx, str.winsock
mov dword [esp + 8], eax
call fcn.004019f0
mov ecx, dword [esp + 0x19c]
mov eax, dword [ebp + 8]
xor ecx, esp
call fcn.00464d49
mov esp, ebp
pop ebp
ret 8

Function at 0x40ef90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a030
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.00465047
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00412a40
mov dword [ebp - 4], 1
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x40f01c
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4100f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a0e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.00465047
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push ebx
add edi, 0x14
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00412a40
mov dword [esi + 0x30], vtable.boost::exception.0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x411688
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4116ba
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4116b6
cmp esi, eax
jae 0x4116ba
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4116a8
cmp esi, eax
jb 0x4116c0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x411700
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00469070
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41176d
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x41175d
cmp eax, 4
jne 0x41176d
cmp dword [ebp - 0x110], 0x5a
jb 0x41176d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00464d49
mov esp, ebp
pop ebp
ret
Function at 0x411850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4ad658]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x110
xor ebx, ebx
lea eax, [ebp - 0x114]
push ebx
push eax
mov esi, 0x64
mov dword [ebp - 0x118], 0x114
call fcn.00469070
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4118cf
cmp dword [ebp - 0x114], 6
jb 0x4118cf
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
lea ecx, [ebp - 0x120]
lea ebx, [ebp - 0x11c]
call fcn.004117a0
test eax, eax
js 0x4118cf
cmp dword [ebp - 0x11c], 6
jae 0x4118e4
pop esi
mov eax, 0x50
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464d49
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464d49
mov esp, ebp
pop ebp
ret

Function at 0x412320
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
test esi, esi
jns 0x41233b
push 0x80070057
call fcn.00412300
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x412357
mov eax, esi
mov ecx, edi
call fcn.004122a0
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41237e
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x412382
push ecx
push eax
call fcn.00465d4d
add esp, 8
test eax, eax
js 0x412331
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x412331
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
ret