joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e030
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4753d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00468815
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046deb3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046f3cf
test eax, eax
je 0x43e14c
mov ecx, dword [esp + 0x3c]
call fcn.0046dee0
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43e110
push edi
mov ecx, esi
call fcn.0046b53e
mov ecx, esi
call fcn.0043e2b0
cmp dword [esp + 0x38], 1
jne 0x43e145
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046b679
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440b60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440b93
push esi
call fcn.00443c50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440b8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440c19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440c02
mov eax, dword [esi + 8]
test eax, eax
je 0x440bb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x440bfe
cmp eax, 2
je 0x440c02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440baa
cmp eax, 3
je 0x440bdd
cmp eax, 1
jne 0x440baa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x440baa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440baa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440c40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440c28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440c40
add esp, 4
pop esi
ret

Function at 0x44c770
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44c813
test eax, eax
jbe 0x44c813
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44c813
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44c7be
xor esi, esi
jmp 0x44c7c4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44c7ef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044e700
add esi, eax
push esi
mov ebx, esi
call fcn.0044e700
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44c7d0
pop ebp
test edi, edi
pop edi
jne 0x44c813
test ebx, ebx
je 0x44c813
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004577e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44c955
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44ca6d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44ca6d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00468c67
mov esi, eax
test esi, esi
je 0x44ca6d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44ca6d
mov ecx, esi
call fcn.0044c8c0
cmp edi, eax
jge 0x44ca6d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44c9f3
mov dword [esp + 0x34], 1
jmp 0x44ca4e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44ca6d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044bea0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x44eb00
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44eb66
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44eb66
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44eb47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44fcd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475b20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044f880
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044f900
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044f900
lea ecx, [esi + 0xc]
call fcn.004671f1
lea ecx, [esi + 0x10]
call fcn.004671f1
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00452140
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00452140
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00452140
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00467266
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00467266
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x450978
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475d48
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x450988
call fcn.00450ea0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x450a6b
cmp byte [edi], 0
je 0x450a6b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4509ad
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044f6a0
test eax, eax
jne 0x4509cd
push 0x4c2550
lea ecx, [esi + 0x38]
call fcn.004673a3
jmp 0x450a6b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044f6f0
test eax, eax
jne 0x4509fc
mov ecx, esi
call fcn.0044f7f0
push edi
add esi, 0x38
push 0x4c252c
push esi
call fcn.0046506a
add esp, 0xc
jmp 0x450a6b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00451730
test eax, eax
je 0x450a64
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00450b40
test eax, eax
jne 0x450a80
push edi
lea eax, [esi + 0x38]
push 0x4c2508
push eax
call fcn.0046506a
add esp, 0xc
mov ecx, esi
call fcn.00450ea0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x450b28
mov ecx, dword [0x4c2aec]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0046506a
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044f7a0
test eax, eax
jne 0x450aea
push 0x4c24ec
lea ecx, [esi + 0x38]
call fcn.004673a3
jmp 0x450afa
push 0xfa
mov ecx, esi
call fcn.00451730
test eax, eax
jne 0x450b17
mov ecx, esi
call fcn.00450ea0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00467266
jmp 0x450a6b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00467266
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x46960a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x469642
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004676c1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00467699
jmp 0x46964e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46acfb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46ad3d
call fcn.00470904
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ad3d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ad34
xor eax, eax
jmp 0x46ad45
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ad4b
pop edi
pop esi
pop ebx
ret 4

Function at 0x470e34
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x470e62
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x470e80
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00470d9a
jmp 0x470e80
mov eax, dword [esi + 0x14]
test eax, eax
je 0x470e80
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00470d9a
test edi, edi
mov eax, edi
jne 0x470e6a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401050
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0x40bf50
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4010c7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push esi
mov dword [esp + 4], edx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4010c7
xor eax, eax
pop ecx
ret
or eax, 0xffffffff
pop ecx
ret

Function at 0x4010d0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x40bf50
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401177
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40112e
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x401160
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401149
cmp byte [eax], 0
je 0x401149
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x401160
mov ecx, dword [esp + 0x18]
push ecx
call ebx
push esi
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40116d
push eax
call ebx
test esi, esi
pop ebx
jne 0x401177
pop edi
xor eax, eax
pop esi
ret
pop edi
or eax, 0xffffffff
pop esi
ret
Function at 0x401180
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xa8
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x28]
pop edi
cmp eax, 2
jne 0x401237
lea ecx, [esp]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401251
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xac]
test eax, eax
je 0x401248
test al, 0xb
jne 0x401248
or al, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xa8
ret
mov eax, dword [esp + 0xac]
test eax, eax
je 0x401248
test al, 0xb
jne 0x401248
or al, 1
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xa8
ret

Function at 0x401260
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
push 0x22
push esi
call fcn.00402660
add esp, 0xc
cmp eax, esi
jne 0x4012af
inc esi
push edi
push 0x22
push esi
call fcn.00402660
mov cl, byte [eax]
add esp, 0xc
cmp cl, 0x5c
je 0x4012a1
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x401298
sub eax, esi
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4012fb
jmp 0x4012dc
push edi
push 0x20
push esi
call fcn.00402660
add esp, 0xc
test eax, eax
jne 0x4012c2
lea eax, [edi + esi]
cmp byte [eax], 0x5c
je 0x4012d0
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x4012c7
sub eax, esi
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4012fb
mov ecx, ebx
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + eax], 0
call fcn.00409812
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4013a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x198]
stosw word es:[edi], ax
lea eax, [esp + 4]
push eax
push ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
pop edi
je 0x4013de
or eax, 0xffffffff
add esp, 0x190
ret
call sub.WSOCK32.dll_WSACleanup
test eax, eax
je 0x4013f3
mov eax, 0xfffffffe
add esp, 0x190
ret
mov eax, dword [esp + 2]
and eax, 0xffff
add esp, 0x190
ret
Function at 0x401410
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push esi
push edi
push 0x202
call fcn.004013a0
add esp, 4
cmp eax, 0x202
je 0x4014c2
push 0x31
push 0x40b090
push str.WINSOCK_v2.0_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x4014b4
lea eax, [esp + 8]
push ebx
push eax
call fcn.00401260
mov edi, str.Sock2Ins.Exe
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 5
mov ecx, ebx
push 0x40bf50
lea eax, [esp + 0x14]
push 0x40bf50
and ecx, 3
push eax
push str.open
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebx
pop edi
mov eax, 0xfffffffe
pop esi
add esp, 0x104
ret 0x10
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x104
ret 0x10
mov esi, dword [esp + 0x110]
lea ecx, [esp + 8]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 7]
lea edx, [esp + ecx + 7]
cmp al, 0x5c
je 0x4014fc
mov al, byte [edx - 1]
dec edx
cmp al, 0x5c
jne 0x4014f4
inc edx
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xc
jb 0x401511
mov byte [edx + 0xc], al
push str.SetupReg.Exe
push edx
call fcn.004081e0
add esp, 8
test eax, eax
jne 0x40153e
push eax
push 0x4019f0
push eax
push 0x69
push esi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
pop esi
add esp, 0x104
ret 0x10
mov eax, dword [esp + 0x118]
test eax, eax
je 0x401563
cmp byte [eax], 0
je 0x401563
push eax
push esi
call fcn.00402230
add esp, 8
pop edi
pop esi
add esp, 0x104
ret 0x10
push 0
push 0x401580
push 0
push 0x6e
push esi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
pop esi
add esp, 0x104
ret 0x10
Function at 0x401d40
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
test ebp, ebp
push edi
jne 0x401d53
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x401d96
mov eax, dword [esp + 0x18]
push 0xa
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401df9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push 0x8410
push ecx
call fcn.00402a48
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x401db6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push 0
push edi
call fcn.004027b8
push 2
push 0
push edi
call fcn.004027b8
push 0
push 0
push edi
mov esi, eax
call fcn.004027b8
push esi
call fcn.004032d9
push esi
push eax
push edi
mov dword [ebp], eax
call fcn.00402852
push edi
call fcn.00402705
add esp, 0x38
neg esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4021b0
Capabilities:
Clear file content
Set file attributes
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0x402228
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x402228
mov edi, dword [esp + 0x18]
test edi, edi
je 0x402228
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40221f
cmp esi, 0xffffffff
je 0x40221f
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
Function at 0x4023f0
Capabilities:
Clear file content
Get common file path
Set file attributes
Write file on windows

Disassembly:
mov eax, 0x1098
call fcn.00403750
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
jne 0x40242a
or eax, 0xffffffff
add esp, 0x1098
ret
cmp dword [esp + 0x14], 2
jne 0x40243c
cmp dword [esp + 8], 4
jae 0x402623
push esi
lea ecx, [esp + 0xf9c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0xf9c]
lea eax, [esp + 0x9c]
push edx
push str._sWBSTMB1.DLL
push eax
call fcn.00402d18
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea ecx, [esp + 0x9c]
push 0x80
push ecx
call esi
lea edx, [esp + 0xf9c]
lea eax, [esp + 0x9c]
push edx
push str._sWSOCK32.DLL
push eax
call fcn.00402d18
add esp, 0xc
lea ecx, [esp + 0x9c]
push 0x80
push ecx
call esi
lea edx, [esp + 0xf9c]
lea eax, [esp + 0x9c]
push edx
push str._sPINHARE.DLL
push eax
call fcn.00402d18
add esp, 0xc
lea ecx, [esp + 0x9c]
push 0x80
push ecx
call esi
lea edx, [esp + 0xf9c]
lea eax, [esp + 0x9c]
push edx
push str._sPINHMAT.DLL
push eax
call fcn.00402d18
add esp, 0xc
lea ecx, [esp + 0x9c]
push 0x80
push ecx
call esi
lea edx, [esp + 0xf9c]
lea eax, [esp + 0x9c]
push edx
push str._sWININME.DLL
push eax
call fcn.00402d18
add esp, 0xc
lea ecx, [esp + 0x9c]
push 0x80
push ecx
call esi
lea edx, [esp + 0xf9c]
lea eax, [esp + 0x9c]
push edx
push str._sWINNT32_EXE
push eax
call fcn.00402d18
add esp, 0xc
lea ecx, [esp + 0x9c]
push 0x80
push ecx
call esi
lea edx, [esp + 0xf9c]
lea eax, [esp + 0x9c]
push edx
push str._sSYSTEM.HLP
push eax
call fcn.00402d18
add esp, 0xc
lea ecx, [esp + 0x9c]
push 0x80
push ecx
call esi
lea edx, [esp + 0xf9c]
lea eax, [esp + 0x9c]
push edx
push str._CD__s___NUL_r_n_IF_EXIST_WBSTMB1.DLL_IF_EXIST_WSOCK32.DLL_COPY_WBSTMB1.DLL_WSOCK32.DLL___NUL_r_n_IF_EXIST_WBSTMB1.DLL_IF_EXIST_WSOCK32.DLL_DEL_WBSTMB1.DLL___NUL_r_n:_IF_EXIST_WINNT32.EXE_DEL_WINNT32.EXE___NUL_r_n_IF_EXIST_WININME.DLL_DEL_WININME.DLL___NUL_r_n_IF_EXIST_PINHARE.DLL_DEL_PINHARE.DLL___NUL_r_n:_IF_EXIST_PINHMAT.DLL_DEL_PINHMAT.DLL___NUL_r_n_IF_EXIST_SYSTEM.HLP_DEL_SYSTEM.HLP___NUL_r_n_CD_..___NUL_r_n_IF_EXIST_WINSTART.BAT_DEL_WINSTART.BAT___NUL
push eax
call fcn.00402d18
add esp, 0xc
lea ecx, [esp + 0xf9c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0xf9c]
push str.WINSTART.BAT
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0xfb0]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 4]
push 0
lea edx, [esp + 0xa0]
push ecx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0xa8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
add esp, 0x1098
ret