joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7bbf20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x7bbfd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x7bbfcf
push ebx
push edi
push 0x7df770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x7bbfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x7df770
push esi
call ebx
test eax, eax
je 0x7bbfae
mov ebp, 3
cmp dword [0x7df774], ebp
jne 0x7bbfaa
push 0x3e8
call edi
push 0x7df770
push esi
call ebx
test eax, eax
jne 0x7bbf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x7bbfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x7bbfbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0x7bfe00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x7d58f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x7bfed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.007bc7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x7bfe61
mov edx, dword [eax]
jmp 0x7bfe63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.007be050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x7bfebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x7bfebf
cmp esi, edi
je 0x7bfebf
mov ecx, esi
call fcn.007b7a00
push esi
call fcn.007c51c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.007bc990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x7bfef5
mov eax, dword [eax]
jmp 0x7bfef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.007bb640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x7bff25
mov eax, dword [eax]
jmp 0x7bff27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x7bff76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x7bff76
cmp esi, edi
je 0x7bff76
mov eax, dword [esi]
cmp eax, edi
je 0x7bff5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x7bff6d
push eax
call fcn.007c51c8
add esp, 4
push esi
call fcn.007c51c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7bff90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x7bfffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7c0035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.007bfe00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x7bffc5
mov edi, 0x7da8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7c0035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.007bfe00
add edi, 4
add esp, 0xc
cmp edi, 0x7da8c0
jb 0x7c0000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x7c0070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.007c6082
mov esi, eax
add esp, 8
test esi, esi
je 0x7c0107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x7c0102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.007c5946
add esp, 8
test eax, eax
je 0x7c00e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x7c00e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.007c5946
add esp, 8
test eax, eax
jne 0x7c00c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x7c0102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x7c0f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7d59fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x7c1002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.007c4dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x7c1002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007bc6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.007c520b
push 0x10
call fcn.007c51d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x7c0fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007b11c0
jmp 0x7c0fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.007c0b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x7c0ff0
mov ecx, edi
call fcn.007b12c0
push edi
call fcn.007c51c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x7c1021
inc ebx
cmp ebx, 0x20
jb 0x7c0f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7c2250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7d6808
push 0x7c6288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7c2329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7c2329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007c51d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x7c2329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x7c2329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x7c232c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.007c2351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7c3000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x7c3131
push esi
call fcn.007c6145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.007b5080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x7c3131
push 0
push ebp
call fcn.007b53a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.007b5260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x7c308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007b52f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x7c3121
push 0x7db918
push edi
call fcn.007c43f0
push eax
push ebx
push esi
call fcn.007c2f60
push 0x7db8f8
push edi
call fcn.007c43f0
push eax
push ebx
push esi
call fcn.007c2f60
push 0x7db8d8
push edi
call fcn.007c43f0
push eax
push ebx
push esi
call fcn.007c2f60
push 0x7db8c0
push edi
call fcn.007c43f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.007c2f60
push 0x7db8a0
push edi
call fcn.007c43f0
push eax
push ebx
push esi
call fcn.007c2f60
push 0x7db888
push edi
call fcn.007c43f0
push eax
push ebx
push esi
call fcn.007c2f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7c41b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007c4140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007c4140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007c4140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007c4140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7c4bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7c4c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7d687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7c4c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7c4c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x800
push esi
push str.c:cisidebug0010
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401082
mov eax, dword [str.c:lib.log]
push 0x48f438
push eax
call fcn.0045a0ea
mov esi, eax
add esp, 8
test esi, esi
jne 0x40104a
mov ecx, dword [str.c:lib.log]
push 0x48f434
push ecx
call fcn.0045a0ea
mov esi, eax
add esp, 8
test esi, esi
je 0x401082
mov eax, dword [esp + 0x808]
lea edx, [esp + 0x80c]
push edx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.0045a068
lea edx, [esp + 0x10]
mov byte [esp + eax + 0x10], 0
push edx
push 0x48f430
push esi
call fcn.0045a02c
push esi
call fcn.00459faf
add esp, 0x1c
pop esi
add esp, 0x800
ret
Function at 0x401ec0
Capabilities:
Get file size

Disassembly:
push esi
mov eax, dword [esp + 8]
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push Ordinal_2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401efa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401ef3
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4021c9
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x406a50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x10c]
push ecx
lea eax, [esp + 8]
push edx
push eax
call fcn.00401ff0
add esp, 0xc
xor eax, eax
pop edi
add esp, 0x104
ret 8

Function at 0x409f10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [esp + 0x114]
mov ecx, dword [esp + 0x110]
push esi
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.0044d9b0
push esi
call fcn.00409d60
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x104
ret

Function at 0x40a260
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x25c
lea eax, [esp + 0x158]
push esi
push eax
push str.WinSetting.ini
call fcn.004020a0
lea ecx, [esp + 0x164]
push ecx
call fcn.0044d8c0
add esp, 0xc
test eax, eax
jne 0x40a2ad
mov edx, dword [0x49a348]
push 0x10
push edx
push 0x490954
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop esi
add esp, 0x25c
ret
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x5c]
push eax
push ecx
call fcn.0040a130
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x10], edx
add esp, 8
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edx
push eax
push ecx
push edx
push edx
push edx
push edx
push edx
mov dword [esp + 0x30], edx
push edx
lea edx, [esp + 0x7c]
push edx
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x40a338
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
or eax, 0xffffffff
pop esi
add esp, 0x25c
ret
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
xor eax, eax
pop esi
add esp, 0x25c
ret

Function at 0x40a370
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push esi
mov esi, dword [esp + 0x110]
test esi, esi
jne 0x40a38d
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [str.FileTools.ini]
lea ecx, [esp + 0xc]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0044d9b0
push 0x30c
lea ecx, [esp + 0x1a]
push 0
push ecx
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0044d770
add esp, 0x20
pop edi
pop esi
add esp, 0x108
ret
Function at 0x40a3f0
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a42b
mov eax, dword [esp + 0x18]
and eax, 0xffff
push eax
push 0x30
push 0x4909c4
push str._s__d__UDP_socket_error_port_d......_
call section..text
add esp, 0x10
or eax, esi
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x18]
push ecx
call sub.WSOCK32.dll_htons
mov word [esp + 6], ax
xor edx, edx
lea eax, [esp + 4]
push 0x10
mov dword [esp + 0x10], edx
push eax
push esi
mov word [esp + 0x10], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], edx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x40a481
push 0x3d
push 0x4909c4
push str._s__d__UDP_socket_bind_failure__n
call section..text
add esp, 0xc
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x40a4d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
push 0x10
push eax
push 0
push esi
push ecx
push edi
call sub.WSOCK32.dll_sendto
test eax, eax
jge 0x40a507
push 0x10
push esi
push edi
push str.sendform_to_erro_test_sock_s_d_bufLen_d_len_d_n
call section..text
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
ret

Function at 0x40a6d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
mov eax, dword [esp + 0x118]
push esi
push edi
mov ecx, 0x41
lea esi, [esp + 0x14]
lea edi, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 1
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
push ecx
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [ebx + 1]
push edx
push eax
mov dword [esp + 0x24], 0
call sub.WSOCK32.dll_select
test eax, eax
jge 0x40a736
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret
lea ecx, [esp + 0x14]
push ecx
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
dec eax
pop ebx
add esp, 0x10c
ret
Function at 0x40a760
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x810
push ebx
push ebp
push esi
push edi
mov edi, 0x2712
xor ebp, ebp
push edi
call fcn.0040a3f0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x40a7a1
inc edi
cmp di, 0x2739
jg 0x40a84b
push 0x2712
call fcn.0040a3f0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x40a781
mov edi, dword [esp + 0x82c]
lea edx, [edi + 4]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [esp + 0x14], eax
mov ax, word [edi + 0x154]
push eax
mov word [esp + 0x14], 2
call sub.WSOCK32.dll_htons
mov edi, dword [esp + 0x828]
mov ebx, dword [esp + 0x824]
lea ecx, [esp + 0x10]
mov word [esp + 0x12], ax
push ecx
push edi
push ebx
push esi
call fcn.0040a4d0
add esp, 0x10
cmp eax, 0xffffffff
je 0x40a820
push 5
push esi
call fcn.0040a6d0
add esp, 8
cmp eax, 0xffffffff
jne 0x40a891
cmp ebp, 2
jg 0x40a870
lea edx, [esp + 0x10]
inc ebp
push edx
push edi
push ebx
push esi
call fcn.0040a4d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40a7f1
push 0xfa
push 0x4909c4
push str._s__d__Write_Socket_failure__n
call section..text
push esi
call fcn.0040a490
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x810
ret
mov eax, dword [0x49a328]
mov ecx, dword [0x49a400]
push 0x10
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x810
ret
push esi
call fcn.0040a490
push 0x490a30
call section..text
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x810
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push 0x800
push ecx
push esi
call fcn.0040a4a0
push esi
call fcn.0040a490
mov eax, dword [esp + 0x3a]
add esp, 0x14
and eax, 0xffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x810
ret
Function at 0x40d6c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
test ebx, ebx
jne 0x40d6dd
or eax, 0xffffffff
pop ebx
add esp, 0x100
ret
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x114]
lea ecx, [esp + 0xc]
push eax
push 0x100
push ecx
push 0
push str.CertID
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x40d740
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x100
push ebx
push ebp
mov ebp, dword [esp + 0x110]
test ebp, ebp
je 0x40d7f5
mov ebx, dword [esp + 0x10c]
test ebx, ebx
je 0x40d7f5
push esi
mov esi, dword [esp + 0x118]
test esi, esi
push edi
mov eax, esi
jne 0x40d77a
mov eax, str.NULL
push eax
push 0x1b9
push 0x490c10
push str._s__d__desktopPath_s__n
call section..text
add esp, 0x10
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push ebp
lea eax, [esp + 0x14]
push 0x100
push eax
push esi
push str.DSTPath
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40d7e8
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x100
ret

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

Disassembly:
sub esp, 0x148
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x154]
mov ecx, edi
push esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d84c
pop edi
xor al, al
pop esi
add esp, 0x148
ret
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40d868
pop edi
xor al, al
pop esi
add esp, 0x148
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov al, byte [esp + 0x15c]
test al, al
mov dword [esp + 0xc], ecx
je 0x40d89a
lea edx, [esp + 8]
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [esp + 8]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
pop edi
mov al, 1
pop esi
add esp, 0x148
ret