joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b23c5
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push eax
call fcn.005423e0
push edx
call fcn.00542240
pop edx
push eax
push edx
call fcn.00542240
pop edx
push eax
push edx
call fcn.00542240
pop edx
push eax
push edx
call fcn.00542240
pop edx
push eax
push 0x243
call fcn.00528764
call fcn.004fa482
add dword [esp], edx
call fcn.0053fc10
lea eax, [esp + 4]
push eax
call fcn.00542280
mov edx, dword [esp]
xor ecx, ecx
call fcn.004fa4a0
jne 0x4b2484
push 0x10
call fcn.004b03dd
and eax, eax
je 0x4b244e
push 5
push 0
push 0
mov eax, dword [esp + 0xc]
push eax
mov eax, str.open
push eax
push 0
call sub.SHELL32.dll_ShellExecuteW
jmp 0x4b2484
push edx
call fcn.00542240
pop edx
push eax
push edx
call fcn.00542240
pop edx
push eax
push dword [esp + 8]
call fcn.00471cbd
call fcn.00542370
push 0x257
call fcn.004fa482
add dword [esp + 4], edx
call fcn.00528678
call fcn.004fa4e0
xor eax, eax
push dword [esp]
call fcn.00542440
add esp, 4
ret
Function at 0x4bdc3d
Capabilities:
Delete file

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4bdc44
call fcn.005423e0
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.004fa000
lea ebp, [esp + 4]
mov dword [ebp + 4], 3
mov word [ebp + 0x10], 0x444
push dword [esp]
call fcn.00540e80
mov ebx, eax
add ebx, 4
push ebx
call fcn.005410b0
mov dword [esp + 0x24], eax
push dword [esp]
push dword [esp + 0x28]
call fcn.005413f0
push dword [esp + 0x24]
pop eax
mov dword [ebp + 8], eax
lea eax, [esp + 4]
push eax
call sub.SHELL32.dll_SHFileOperationW
push dword [esp + 0x24]
call fcn.00541120
xor eax, eax
push dword [esp]
call fcn.00542440
add esp, 0x28
pop ebx
pop ebp
ret 4
Function at 0x4d9213
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov edx, 0x90
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4d9219
call fcn.005423e0
mov edx, dword [esp + 0x248]
lea ecx, [esp]
call fcn.004fa000
mov edx, dword [esp]
xor ecx, ecx
call fcn.004fa4a0
jne 0x4d9335
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4d9335
push edx
call fcn.00542240
pop edx
push eax
push edx
call fcn.00542240
pop edx
push eax
push dword [esp + 8]
call fcn.0053f5c0
lea eax, [esp + 4]
push eax
call fcn.00542280
push dword [esp]
call fcn.005405c0
mov dword [esp + 0x23c], eax
lea ebp, [esp + 0x10]
mov dword [ebp], 0x22c
lea eax, [esp + 0x10]
push eax
push dword [esp + 0xc]
call sub.KERNEL32.dll_Process32FirstW
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x4d932c
push dword [esp]
push edx
call fcn.00542240
pop edx
push eax
push edx
call fcn.00542240
pop edx
push eax
push edx
call fcn.00542240
pop edx
push eax
push edx
call fcn.00542240
pop edx
push eax
push dword [esp + 0x250]
lea ebp, [esp + 0x28]
lea eax, [ebp + 0x24]
push eax
call fcn.00541480
call fcn.004fa482
add dword [esp], edx
call fcn.0053f5c0
call fcn.004fa4f0
mov edx, eax
pop ecx
call fcn.004fa4a0
je 0x4d9318
mov byte [esp + 4], 1
jmp 0x4d932c
lea eax, [esp + 0x10]
push eax
push dword [esp + 0xc]
call sub.KERNEL32.dll_Process32NextW
mov dword [esp + 0xc], eax
jmp 0x4d92b7
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 4]
movsx eax, al
jmp 0x4d9341
push dword [esp]
call fcn.00542440
add esp, 0x240
pop ebp
ret 4
Function at 0x4dd7bc
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
call fcn.005423e0
push 0x50021
mov eax, str.Edit_DXCluster_URL_file
push eax
mov eax, str.Please_open_DXCluster_website_parser_again_nafter_editing_and_saving_to_make_changes_valid._n_nEdit_file_
push eax
lea ebp, [0x72a850]
push dword [ebp + 0x14]
call fcn.004780fe
mov ebx, eax
cmp ebx, 1
jne 0x4dd81a
call fcn.00462648
push 5
push 0
push 0
lea ebp, [0x72a978]
mov eax, dword [ebp + 0x8c]
push eax
mov eax, str.open
push eax
push 0
call sub.SHELL32.dll_ShellExecuteW
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4e4299
Capabilities:
Query or enumerate registry value

Disassembly:
xor eax, eax
push eax
push eax
call fcn.005423e0
push dword [esp + 0x1c]
call fcn.004fa4e0
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.004fa000
push dword [esp + 0x18]
pop eax
mov dword [esp + 4], eax
push 0
push dword [esp + 0x18]
pop eax
call fcn.004fa410
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegQueryValueExW
push edx
call fcn.00542240
pop edx
push eax
push edx
call fcn.00542240
pop edx
push eax
push dword [esp + 0x1c]
call fcn.005410d0
pop eax
push eax
call fcn.004fa470
pop edx
add eax, edx
jmp 0x4e431e
push dword [esp]
call fcn.00542440
add esp, 8
ret 0x10
Function at 0x4fb14a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x4fb2f0
cmp word [eax], bx
je 0x4fb2f0
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x4fb2ec
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x4fb2e1
push edi
push dword [esp + 0x20]
call fcn.004fb64a
mov edi, eax
test edi, edi
je 0x4fb2e0
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x4fb1c0
push 2
jmp 0x4fb1c4
push dword [esp + 0x20]
push ebx
call fcn.004fbad9
mov esi, eax
test esi, esi
je 0x4fb2d9
cmp ebx, 0xffffffff
jne 0x4fb1db
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x72a674]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x4fb21c
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x4fb22a
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.005490a0
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x4fb2d5
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x4fb255
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.00548a30
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x4fb2c7
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x4fb299
push eax
push dword [esp + 0x1c]
call fcn.004fb6f5
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x4fb2a1
push 1
jmp 0x4fb2a3
push 0
push eax
push edi
call fcn.00548d00
add esp, 0xc
test eax, eax
je 0x4fb2bb
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x4fb246
jmp 0x4fb2d5
push edi
call fcn.00548ce0
pop ecx
mov dword [esi + 0x18], eax
jmp 0x4fb2ce
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.004fb7af
and dword [esi + 0x2c], 0
push edi
call fcn.00548e40
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x4fb2f2
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x4fbc99
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x4fbd31
push edi
push 0x7310b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x72b590]
test edi, edi
je 0x4fbd05
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4fbcfe
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x72b590
call fcn.0054212a
pop ecx
pop ecx
jmp 0x4fbd00
mov edi, dword [edi]
test edi, edi
jne 0x4fbcd5
pop ebx
mov eax, dword [0x725f18]
mov esi, eax
inc eax
push 0x10
push 0x72b590
mov dword [0x725f18], eax
call fcn.0054216a
pop ecx
pop ecx
push 0x7310b8
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x4fbd39
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004fbc4d
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x7310b8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x72b590]
jmp 0x4fbd6a
cmp dword [esi + 0xc], edi
je 0x4fbd70
mov esi, dword [esi]
test esi, esi
jne 0x4fbd63
jmp 0x4fbd88
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x72b590
call fcn.0054212a
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x4fc2b1
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x4fc3ac
push edi
push dword [esp + 0x1c]
push dword [0x7310d8]
call fcn.00541e01
mov edi, eax
test edi, edi
je 0x4fc3ab
mov eax, dword [edi + 4]
push ebx
mov ebx, dword [esp + 0x24]
push esi
imul esi, ebx, 0x24
cmp dword [eax + esi], 2
jne 0x4fc2fe
mov eax, dword [eax + esi + 0x18]
test eax, eax
je 0x4fc2fe
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 4]
mov eax, dword [eax + esi + 0x20]
test eax, eax
je 0x4fc317
push eax
call fcn.0053b8b7
mov eax, dword [edi + 4]
and dword [eax + esi + 0x20], 0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x30]
push ebp
mov dword [esi + eax], 1
mov eax, dword [edi + 4]
mov dword [eax + esi + 8], ecx
mov eax, dword [edi + 4]
mov dword [eax + esi + 0x1c], ebp
call fcn.0053b9a8
test eax, eax
je 0x4fc350
push 0
push 0
push ebp
call fcn.0053b51d
mov ecx, dword [edi + 4]
mov dword [ecx + esi + 0x20], eax
jmp 0x4fc358
mov eax, dword [edi + 4]
and dword [eax + esi + 0x20], 0
mov eax, dword [esp + 0x30]
test al, 1
je 0x4fc368
or ebx, 0x200
jmp 0x4fc372
test al, 2
je 0x4fc372
or ebx, 0x100
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, ebx
push 0
or eax, 0x1000
push eax
push 0x40b
push dword [edi]
call esi
lea eax, [esp + 0x10]
push eax
push ebx
push 0x40a
push dword [edi]
call esi
push 1
lea eax, [esp + 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10
ret 0x10

Function at 0x502ab4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x502b3a
push edi
push dword [ebp + 8]
push dword [0x7310dc]
call fcn.00541e01
mov edi, eax
test edi, edi
je 0x502b39
cmp dword [ebp + 0x10], 0x19
jne 0x502afa
push 0
lea eax, [ebp - 4]
push eax
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
add eax, eax
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x502b39
cmp dword [ebp + 0x10], 2
push esi
jne 0x502b08
call fcn.005e2a20
jmp 0x502b0d
call fcn.005e2c00
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 2
push esi
jne 0x502b34
call fcn.005e2a10
jmp 0x502b39
call fcn.005e2bf0
pop edi
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x503368
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x5033bd
push dword [esp + 0x10]
push 0x5032e7
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x72b7f0]
test esi, esi
je 0x503416
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x5033b5
cmp byte [esi + 0x10], 0
je 0x5033b5
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x503391
jmp 0x503416
mov esi, dword [0x72b7f0]
test esi, esi
je 0x503416
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x50340f
cmp byte [esi + 0x11], 0
je 0x5033eb
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x503402
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x72b7f0
call fcn.0054212a
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x5033ca
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x51e91f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x51e981
cmp word [esi], di
je 0x51e981
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00567550
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.00567800
add esp, 0x10
test eax, eax
jne 0x51e980
push 0x24
push 8
push dword [0x72a674]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x522224
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x522173
push 0x10
push 0x2c
call fcn.00541ed4
push 0
push 0
push 8
mov dword [0x72bb58], eax
call fcn.0054182c
cmp word [0x72bb50], 0
mov dword [0x731194], eax
jne 0x522309
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x52227c
mov word [0x72bb50], di
jmp 0x522284
xor eax, eax
mov word [0x72bb50], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x72bb6c], eax
test eax, eax
je 0x522308
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x600efc
push eax
call esi
push 0x600f08
push dword [0x72bb6c]
mov dword [0x72bb5c], eax
call esi
push str.getnameinfo
push dword [0x72bb6c]
mov dword [0x72bb60], eax
call esi
push str.WSAStringToAddressA
push dword [0x72bb6c]
mov dword [0x72bb64], eax
call esi
cmp dword [0x72bb5c], 0
mov dword [0x72bb68], eax
pop esi
je 0x522308
cmp dword [0x72bb60], 0
je 0x522308
cmp dword [0x72bb64], 0
je 0x522308
test eax, eax
je 0x522308
mov dword [0x72bb54], edi
pop edi
add esp, 0x190
ret

Function at 0x522524
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
xor eax, eax
inc eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
cmp dword [edi], eax
jne 0x5225a7
mov esi, dword [edi + 8]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], esi
push eax
lea eax, [esi + 1]
mov dword [ebp - 0xc], ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x52259e
je 0x5225a3
lea eax, [ebp - 0x120]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5225a3
lea eax, [ebp + 8]
push eax
push 0x4004667f
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x52259e
cmp dword [ebp + 8], ebx
je 0x52259e
push 2
jmp 0x5225a0
push 4
pop esi
jmp 0x522601
mov esi, ebx
jmp 0x522601
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x800
lea eax, [ebp - 0x920]
push eax
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp + 8], eax
test eax, eax
jle 0x522601
push 2
pop esi
push eax
push ebx
push dword [0x72a674]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
push ecx
mov dword [edi + 0x30], ecx
lea ecx, [ebp - 0x920]
push ecx
push eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x34], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x52260c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi], 1
jne 0x522632
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
jmp 0x52266f
cmp dword [esi + 0x2c], ebx
je 0x52266f
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x30]
jle 0x522642
mov edi, dword [esi + 0x30]
push edi
push dword [esi + 0x34]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x30], edi
add esp, 0xc
add dword [esi + 0x34], edi
cmp dword [esi + 0x30], ebx
jne 0x52266f
push dword [esi + 0x2c]
push ebx
push dword [0x72a674]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x2c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x5226c6
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0xff
push eax
mov dword [0x731198], esi
mov dword [0x7311a8], esi
mov dword [0x7311ac], edi
mov dword [0x7311b0], esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x522772
cmp edi, 0x10000000
jne 0x52274e
cmp dword [0x72bb54], esi
je 0x522772
mov eax, dword [0x72bb70]
test eax, eax
je 0x52272a
push eax
call dword [0x72bb60]
mov dword [0x72bb70], esi
push 0x72bb70
push esi
push esi
lea eax, [ebp - 0x100]
push eax
call dword [0x72bb5c]
test eax, eax
jne 0x522772
mov eax, dword [0x72bb70]
mov dword [0x7311b0], eax
jmp 0x52276f
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x522772
push 0x10
push eax
push 0x73119c
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x52341b
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x72bb80]
push esi
test eax, eax
jne 0x523440
push fcn.00523548
push 0x10
push 0x258
call fcn.00541ed4
mov dword [0x72bb80], eax
push dword [esp + 0xc]
push eax
call fcn.00541e40
mov esi, eax
test esi, esi
je 0x523541
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x523462
mov edi, 0x5ecbe8
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x523472
xor eax, eax
cmp word [ebx], ax
jne 0x523477
mov ebx, 0x600f8c
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x72a674]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x523528
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x5234d8
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x5234dc
push 0x600f88
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x5234dc
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x523500
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x523516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x523514
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x72a674]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x52353f
cmp dword [esp + 0x14], 0xffffffff
je 0x523533
mov esi, dword [esp + 0x14]
push esi
push dword [0x72bb80]
call fcn.00541db2
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x5235be
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x5235cc
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x5235cf
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x523647
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x523628
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x523625
cmp ecx, 0x5c
je 0x523625
cmp ecx, 0x2f
jne 0x523632
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x523612
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x523649
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x523a70
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x523aac
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x523f30
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push ebx
push dword [0x7311b4]
mov dword [esp + 0x10], 0
call fcn.00541e01
mov ebp, eax
test ebp, ebp
je 0x52408c
push esi
push edi
push ebx
call fcn.005248d0
cmp dword [ebp + 4], 0
mov esi, eax
mov edi, edx
je 0x523f7c
push 4
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00524940
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x523f97
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, 2
jl 0x523fc5
lea edx, [esp + 0x18]
mov eax, 0xfeff
cmp word [edx], ax
jne 0x523fc5
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
pop ecx
ret 4
cmp ecx, 3
jl 0x523ff6
lea edx, [esp + 0x18]
cmp word [edx], 0xbbef
jne 0x523ff6
cmp byte [edx + 2], 0xbf
jne 0x523ff6
add esi, 3
adc edi, 0
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret 4
cmp ecx, 2
jl 0x524024
lea edx, [esp + 0x18]
mov eax, 0xfffe
cmp word [edx], ax
jne 0x524024
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret 4
cmp ecx, 4
jl 0x524077
lea eax, [esp + 0x18]
cmp dword [eax], 0xfeff
jne 0x524050
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
cmp dword [eax], 0xfffe0000
jne 0x524077
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret 4
push edi
push esi
push ebx
call fcn.00524530
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4

Function at 0x5241d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x7311b4]
call fcn.00541e01
mov esi, eax
test esi, esi
je 0x52424f
cmp dword [esi + 4], 0
je 0x524220
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00524940
test eax, eax
je 0x524214
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x52425a
cmp dword [esp + 8], 0
je 0x52425a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4