joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016a7
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
push 0x413380
call fcn.00403960
pop ecx
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x4017c3
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00407f40
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00407f40
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, 0x416ef0
mov ebx, edi
cmp word [ebx], 0
je 0x401759
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040466c
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004045f7
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x417468
jl 0x40172b
cmp word [edi], 0
je 0x40177e
push dword [ebp + 8]
mov ecx, edi
push 0x413380
call fcn.00404260
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x417468
jl 0x401767
push 0x417c80
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.004045f7
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4017bd
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.004045e8
leave
ret
Function at 0x4018f1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor edi, edi
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
mov dword [ebp - 0x418], edi
call fcn.00407f40
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00407f40
add esp, 0x18
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemWindowsDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov word [ebp - 0x410], ax
push str.HangameKOREANHanUninstall.exe
lea eax, [ebp - 0x414]
push eax
mov ebx, str._s_s
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4019a2
mov dword [ebp - 0x418], 1
push str.NEOWIZPMangcommonPMLauncher.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4019d0
or dword [ebp - 0x418], 2
push str.NetmarbleCommonNetMarbleEndWeb.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x4019fe
or dword [ebp - 0x418], 4
push str.Program_FilesAhnLabV3Lite30V3Lite.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401a2f
or dword [ebp - 0x418], 0x100
push str.Program_FilesESTsoftALYacAYLaunch.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, 0xffffffff
je 0x401a60
or dword [ebp - 0x418], 0x200
push str.Program_Files_naverNaverAgentNaverAgent.exe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call edi
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x401a94
or dword [ebp - 0x418], 0x400
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
or eax, 0x2000000
call fcn.004045e8
leave
ret
Function at 0x401bc3
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x214], esi
cmp ebx, esi
je 0x401cd4
cmp edi, esi
je 0x401cd4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401bf4
sub eax, edx
sar eax, 1
je 0x401cd4
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00407f40
add esp, 0xc
cmp dword [ebp + 8], esi
jne 0x401c5f
cmp dword [0x415f10], 3
jne 0x401c5f
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x4135e8
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004045f7
add esp, 0xc
jmp 0x401c72
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004045f7
and dword [ebp - 0x210], 0
push 0x4135ec
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00404919
add esp, 0x18
cmp dword [ebp - 0x210], 0
je 0x401cd4
push dword [ebp - 0x210]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00404baa
push dword [ebp - 0x210]
call fcn.00404c34
add esp, 0x14
mov dword [ebp - 0x214], esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop esi
call fcn.004045e8
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
xor esi, esi
call fcn.00407f40
and dword [ebp - 0x210], esi
add esp, 0xc
test edi, edi
je 0x401e21
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.golfinfo.ini
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004045f7
push 0x41360c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00404919
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x210], 0
je 0x401e21
push dword [ebp - 0x210]
push esi
push 0x200
push edi
call fcn.00404dff
push dword [ebp - 0x210]
call fcn.00404c34
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004045e8
leave
ret
Function at 0x4025bf
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor esi, esi
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.00407f40
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00407f40
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401ce7
pop ecx
test eax, eax
je 0x4026eb
xor eax, eax
movzx ecx, word [eax + 0x4132ac]
mov word [eax + 0x417578], cx
add eax, 2
cmp cx, si
jne 0x40261f
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x417470], cx
add eax, 2
cmp cx, si
jne 0x402637
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x4174f0], cx
add eax, 2
cmp cx, si
jne 0x402650
cmp dword [0x415f10], 3
mov ax, word [ebp - 0x38c]
mov word [0x417570], ax
mov ax, word [ebp - 0x2ea]
mov word [0x4175f8], ax
mov dword [0x4175fc], 5
lea eax, [ebp - 0x210]
mov esi, 0x104
je 0x4026a9
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
jmp 0x4026c6
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x4136e0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004045f7
add esp, 0xc
push str.golfset.ini
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004045f7
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004045e8
leave
ret

Function at 0x402700
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [0x415f10], 0
call fcn.00407f40
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4027b7
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402781
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x402769
cmp eax, 1
jne 0x4027b7
mov dword [0x415f10], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4027b7
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x4027a8
mov dword [0x415f10], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4027b7
mov dword [0x415f10], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
Function at 0x4027d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00407f40
add esp, 0xc
cmp dword [0x415f10], 3
jne 0x402837
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x413658
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004045f7
add esp, 0xc
jmp 0x402849
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
lea edx, [ebp - 0x20c]
push edx
push 0x41365c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.004045e8
mov esp, ebp
pop ebp
ret

Function at 0x402930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, eax
cmp edi, 0xffffffff
je 0x402a5a
push 0x400
call fcn.0040512d
add esp, 4
push 0x400
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00407f40
add esp, 0xc
call fcn.00402b10
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
shld ecx, eax, 9
shl eax, 9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 4]
push ecx
push 0x400
push ebx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, esi
je 0x402a51
cmp dword [ebx + 4], 0x5042475f
jne 0x4029f4
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4029c0
sub eax, edx
sar eax, 1
je 0x4029f4
mov edi, dword [ebp + 8]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004051c1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 0x3c00
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, esi
je 0x402a51
cmp dword [ebx + 4], 0x5042475f
jne 0x402a51
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402a40
sub eax, edx
sar eax, 1
jne 0x4029d1
push ebx
call fcn.004051c1
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], ax
call fcn.00407f40
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
lea ebx, [ebp - 0x214]
call fcn.00402c00
mov ebx, dword [ebp - 0x214]
add esp, 4
call fcn.00402d00
cmp eax, 0xffffffff
jne 0x402af8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
push esi
call fcn.00402930
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop ebx
call fcn.004045e8
mov esp, ebp
pop ebp
ret

Function at 0x402b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x207]
push ebx
push eax
xor esi, esi
mov byte [ebp - 0x208], bl
call fcn.00407f40
add esp, 0xc
cmp edi, 0xffffffff
je 0x402bdc
xor eax, eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
je 0x402bdc
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
cmp eax, ebx
jbe 0x402bb8
mov esi, eax
mov eax, dword [ebp - 0x2e]
add eax, dword [ebp - 0x32]
cmp eax, esi
jbe 0x402bc4
mov esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
jbe 0x402bd0
mov esi, eax
mov eax, dword [ebp - 0x12]
add eax, dword [ebp - 0xe]
cmp eax, esi
jbe 0x402bdc
mov esi, eax
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045e8
mov esp, ebp
pop ebp
ret
Function at 0x402e30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x4136e4
mov edi, ecx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.00404919
add esp, 0xc
test eax, eax
je 0x402e5d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push esi
push 2
push 0
push edx
call fcn.00405285
mov eax, dword [ebp - 4]
push eax
call fcn.00405495
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.00405285
lea eax, [esi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.0040512d
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.00404baa
mov eax, dword [ebp - 4]
push eax
call fcn.00404c34
push edi
add esi, ebx
push 0
push esi
mov dword [ebp - 8], esi
call fcn.00407f40
mov eax, edi
cdq
and edx, 3
lea esi, [edx + eax]
add esp, 0x40
sar esi, 2
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.004054fa
add esp, 4
xor edi, edi
test esi, esi
jle 0x402ef0
lea ebx, [ebx]
call fcn.0040550c
mov ecx, dword [ebp - 8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jl 0x402ee0
mov edx, dword [ebp + 8]
push 0x4136ec
push edx
lea eax, [ebp - 4]
push eax
call fcn.00404919
add esp, 0xc
test eax, eax
je 0x402f12
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
push ecx
push 1
push edx
push ebx
call fcn.00404dff
mov eax, dword [ebp - 4]
push eax
call fcn.00404c34
add esp, 0x14
test ebx, ebx
je 0x402f3b
push ebx
call fcn.004051c1
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4034f0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x3a98
lea ecx, [ecx]
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40357f
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0x10
push 2
call ebx
mov edi, eax
cmp edi, 0x6f
jne 0x40354f
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor esi, esi
inc dword [ebp - 4]
cmp edi, 0x6f
jne 0x403589
cmp dword [ebp - 4], 3
jb 0x403510
mov edi, 0xfffffffd
test esi, esi
je 0x403576
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40355d
mov eax, esi
test esi, esi
je 0x4035f3
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x4035a3
cmp dword [eax + 0x1c], 0
jne 0x4035ae
mov eax, dword [eax + 8]
test eax, eax
jne 0x403598
xor edi, edi
jmp 0x403562
mov edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov dx, word [eax + 0x30]
mov word [ecx + 4], dx
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
movzx edx, byte [edx + 4]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 3], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 5]
mov byte [ecx + 2], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 6]
mov byte [ecx + 1], dl
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov al, byte [edx + 7]
mov byte [ecx], al
xor edi, edi
jmp 0x403562
Function at 0x403820
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ebx
push edi
call fcn.00403960
add esp, 8
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x403946
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00407f40
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00407f40
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov esi, 0x416ef0
lea ecx, [ecx]
cmp word [esi], 0
je 0x4038d6
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.0040466c
add esp, 0xc
push esi
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call fcn.004045f7
add esp, 0xc
add esi, 0x118
cmp esi, 0x417468
jl 0x4038a0
mov esi, 0x416ef0
lea esp, [esp]
cmp word [esi], 0
je 0x403902
push ebx
push edi
mov ecx, esi
call fcn.00404260
add esp, 8
add esi, 0x118
cmp esi, 0x417468
jl 0x4038f0
push 0x417c80
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.004045f7
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, 2
je 0x403946
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004045e8
mov esp, ebp
pop ebp
ret

Function at 0x403ba0
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, 0x9ac
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x808]
cmp eax, ebx
je 0x403bc5
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x9a8]
push ecx
push 0x101
mov dword [ebp - 0x9ac], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403bf7
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403be6
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403c37
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [ebp - 0x9ac]
push edx
mov dword [ebp - 0x9ac], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403c8d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [ebp - 0x814], edx
mov word [ebp - 0x818], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x818]
mov word [ebp - 0x816], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403c8d
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x403c9c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004045e8
mov esp, ebp
pop ebp
ret
Function at 0x403e10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
cmp dword [ecx], eax
je 0x403e8c
cmp edi, eax
jle 0x403e36
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x403e26
lea ebx, [edi + 7]
push ebx
call fcn.004056ae
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x415f18]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.00408ab0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0x10
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x403e8f
cmp eax, ebx
jne 0x403e8f
mov dword [ebp - 4], 1
jmp 0x403e8f
mov esi, dword [ebp + 8]
test esi, esi
je 0x403e9c
push esi
call fcn.00405a87
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4040c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x8d8], edx
mov dword [ebp - 0x8d4], ebx
lea ecx, [ebp - 0x8cc]
test eax, eax
je 0x4040fc
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [edx]
xor edi, edi
mov dword [ebp - 0x8d0], edi
test esi, esi
je 0x404247
test ebx, ebx
je 0x404247
push 0xc7
lea ecx, [ebp - 0xcb]
push edi
push ecx
mov byte [ebp - 0xcc], al
call fcn.00407f40
add esp, 0xc
push edi
push 2
lea edx, [ebp - 0xcc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404245
test eax, eax
je 0x404245
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
xor esi, esi
call fcn.004056ae
add esp, 4
mov ebx, eax
test edi, edi
jle 0x404221
jmp 0x404180
mov eax, dword [ebp - 0x8d8]
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [eax]
lea edx, [esi + ebx]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4041fb
test eax, eax
je 0x4041fb
add esi, eax
cmp edi, esi
jg 0x404180
cmp esi, 5
jl 0x404221
mov edx, dword [str.AS101]
sub esi, 5
cmp edx, dword [ebx]
jne 0x404221
mov al, byte [ebx + 4]
cmp al, byte [0x415f18]
jne 0x404221
test esi, esi
jle 0x4041da
lea eax, [ebx + 5]
mov edi, esi
nop
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x4041d0
mov edi, dword [ebp - 0x8dc]
mov eax, dword [edi]
cmp eax, esi
jl 0x404203
mov eax, dword [ebp - 0x8d4]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00408ab0
mov dword [edi], esi
jmp 0x404214
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404221
mov edx, dword [ebp - 0x8d4]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00408ab0
add esp, 0xc
mov dword [ebp - 0x8d0], 1
test ebx, ebx
je 0x40422e
push ebx
call fcn.00405a87
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004045e8
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045e8
mov esp, ebp
pop ebp
ret