joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4618ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47d058]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4618ee
cmp byte [ebx], 0xa
jne 0x4618ee
or byte [edi + eax + 0x28], 4
jmp 0x4618f3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4619f2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4619d5
inc eax
cmp dl, 0xd
je 0x46191f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x461945
cmp eax, ecx
jae 0x461953
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x461907
jmp 0x4619f2
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4619d0
cmp dword [ebp - 0x10], 0
je 0x4619d0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47d058]
test byte [eax + edi + 0x28], 0x48
je 0x4619aa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x461995
mov byte [esi], dl
jmp 0x4619a6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47d058]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4619f2
cmp byte [ebp - 1], 0xa
jne 0x4619b9
cmp esi, ebx
jne 0x4619b9
mov byte [esi], 0xa
jmp 0x4619f1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401532
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4619f2
mov byte [esi], 0xd
jmp 0x4619f1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47d058]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4619ef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4619f2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x461a4e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x47d058]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x461a94
cmp word [ebx], dx
jne 0x461a94
or byte [eax + edi + 0x28], 4
jmp 0x461a99
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x461bfc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x461bdc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x461ada
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x461b10
cmp eax, edx
jae 0x461b1e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x461ab5
jmp 0x461bfc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461bd7
cmp dword [ebp - 0x18], 0
je 0x461bd7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47d058]
test byte [eax + edi + 0x28], 0x48
je 0x461bad
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x461b71
mov word [esi], cx
jmp 0x461ba8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47d058]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x47d058]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47d058]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x461bfc
pop eax
cmp word [ebp - 4], ax
jne 0x461bbd
cmp esi, ebx
jne 0x461bbd
mov word [esi], ax
jmp 0x461bf9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401532
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x461bfc
push 0xd
pop eax
jmp 0x461bb8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47d058]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x461bf6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x461bfc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b4be0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x7d000]
push edi
jmp 0x4b4bfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b4c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b4bf0
mov eax, 1
add ebx, ebx
jne 0x4b4c13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b4c24
jne 0x4b4c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b4c43
dec eax
add ebx, ebx
jne 0x4b4c30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b4c08
add ebx, ebx
jne 0x4b4c3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b4c95
xor ecx, ecx
sub eax, 3
jb 0x4b4c5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b4cca
sar eax, 1
mov ebp, eax
jmp 0x4b4c66
add ebx, ebx
jne 0x4b4c66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b4c34
inc ecx
add ebx, ebx
jne 0x4b4c74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b4c34
add ebx, ebx
jne 0x4b4c81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b4c76
jne 0x4b4c92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b4c76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b4cb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b4ca6
jmp 0x4b4bf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b4cb4
add edi, ecx
jmp 0x4b4bf6
pop esi
mov edi, esi
mov ecx, 0x318d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b4cd2
cmp byte [edi], 0x1b
jne 0x4b4cd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b4cd7
lea edi, [esi + 0xb1000]
mov eax, dword [edi]
or eax, eax
je 0x4b4d4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd425c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd4374]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b4d04
mov ecx, edi
jns 0x4b4d33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd4378]
or eax, eax
je 0x4b4d49
mov dword [ebx], eax
add ebx, 4
jmp 0x4b4d21
call dword [esi + 0xd4388]
mov ebp, dword [esi + 0xd437c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b4d83
sub esp, 0xffffff80
jmp 0x453e3d
Function at 0x46b27d
Capabilities:
Packed with generic packer

Disassembly:
pushal
cmp dword [0x4012dc], 0
je 0x46b35d
cmp dword [0x401528], 0
je 0x46b2d1
cmp dword [0x40158c], 5
jle 0x46b2d1
push 0x401712
push 0
push dword [0x4012dc]
call dword [fcn.00401530]
add word [0x4016c4], 1
add word [0x4016c6], 1
push 0x4016b2
push dword [0x4012dc]
call dword [fcn.00401538]
movzx eax, word [0x4016a4]
push eax
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_SetConsoleTextAttribute]
mov dword [0x401766], 0x19
push 0x401766
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_SetConsoleCursorInfo]
movzx eax, word [0x4016aa]
movzx ecx, word [0x4016a6]
sub eax, ecx
add eax, 1
movzx edx, word [0x4016ac]
movzx ecx, word [0x4016a8]
sub edx, ecx
add edx, 1
movzx esi, word [0x40169c]
movzx edi, word [0x40169e]
push edi
push esi
push edx
push eax
call fcn.0046bcd4
push 5
push 0
push 0
push dword [0x401570]
push dword [0x40156c]
push 0
push dword [0x4012e8]
call dword [sym.imp.user32.dll_SetWindowPos]
cmp dword [0x401300], 0
je 0x46b37e
push dword [0x401300]
call dword [sym.imp.kernel32.dll_SetConsoleCP]
push dword [0x401304]
call dword [sym.imp.kernel32.dll_SetConsoleOutputCP]
push dword [0x4012d8]
call dword [sym.imp.kernel32.dll_FlushConsoleInputBuffer]
push dword [0x4012f4]
push dword [0x4012d8]
call dword [sym.imp.kernel32.dll_SetConsoleMode]
cmp dword [0x401308], 0
je 0x46b3b9
push dword [0x401308]
push 0
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [0x40131c], 0
je 0x46b3ce
push dword [0x40131c]
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
push dword [0x4012f8]
push 0xfffffffffffffff0
push dword [0x4012e8]
call dword [sym.imp.user32.dll_SetWindowLongW]
push 0
push 0
push 0
call dword [sym.imp.winmm_PlaySoundW]
cmp dword [0x40153c], 0
je 0x46b3fd
call dword [0x401540]
popal
ret

Function at 0x46b8c7
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
lea edx, [ebp - 0x18]
push edx
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
xor ecx, ecx
mov cx, word [ebp - 0x14]
mov dword [0x401298], ecx
xor ebx, ebx
mov bx, word [ebp - 0x12]
mov dword [0x40129c], ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp esi, 0xffffffff
jg 0x46b906
cmp edi, 0xffffffff
jle 0x46b93e
cmp esi, 0xffffffff
jle 0x46b919
mov eax, esi
mov ecx, dword [0x4012b4]
xor edx, edx
div ecx
mov ecx, edx
cmp edi, 0xffffffff
jle 0x46b92c
mov eax, edi
mov ebx, dword [0x4012bc]
xor edx, edx
div ebx
mov ebx, edx
shl ebx, 0x10
or ebx, ecx
push ebx
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
popal
leave
ret 8
Function at 0x46b9dd
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push ecx
push edx
push esi
push edi
push 0x2104
push 8
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
lea edx, [ebp + 0x14]
push edx
push dword [ebp + 0x10]
push 0x1000
push eax
call dword [sym.imp.msvcrt.dll__vsnwprintf]
add esp, 0x10
and eax, 0xfff
je 0x46bafa
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, 0xffffffff
jle 0x46bae2
cmp edx, 0xffffffff
jle 0x46bae2
mov cx, dx
shl ecx, 0x10
or cx, bx
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x18]
push edx
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_WriteConsoleOutputCharacterW]
cmp dword [0x401310], 0
jne 0x46ba87
mov ax, word [ebp - 0x10]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
rep stosw word es:[edi], ax
jmp 0x46bac7
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
mov dword [0x401310], 0
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov ax, word [ebp - 0x10]
and ax, 0xf
and word [edi], 0xfff0
or word [edi], ax
add edi, 2
sub ecx, 1
jne 0x46bab8
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_WriteConsoleOutputAttribute]
jmp 0x46bafa
push 0
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_WriteConsoleW]
push dword [ebp - 0x28]
push 0
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret

Function at 0x46bb15
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, 0
jle 0x46bb5d
mov ecx, edi
add ecx, 1
add ecx, ecx
push ecx
push 8
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
mov cx, word [ebp + 0xc]
shl ecx, 0x10
or cx, word [ebp + 8]
push 0x4012ec
push ecx
push edi
push ebx
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterW]
mov eax, ebx
pop edi
pop edx
pop ecx
pop ebx
leave
ret 0xc
Function at 0x46bbf6
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
pushal
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp eax, 1
jl 0x46bc67
cmp ecx, 1
jl 0x46bc67
cmp dword [ebp + 8], 0
jl 0x46bc67
cmp dword [ebp + 0xc], 0
jl 0x46bc67
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], cx
sub ax, 1
sub cx, 1
mov bx, word [ebp + 8]
mov word [ebp - 8], bx
add ax, bx
mov word [ebp - 4], ax
mov bx, word [ebp + 0xc]
mov word [ebp - 6], bx
add cx, bx
mov word [ebp - 2], cx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x18]
cmp word [eax], 0
je 0x46bc67
lea edx, [ebp - 8]
push edx
push 0
push ecx
push eax
push dword [0x4012dc]
call dword [sym.imp.kernel32.dll_WriteConsoleOutputW]
popal
leave
ret 0x14

Function at 0x46c235
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
cmp dword [0x401528], 0
je 0x46c2b7
cmp dword [0x40158c], 5
jle 0x46c2b7
mov dword [ebp - 0x54], 0x54
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0x190
lea edx, [ebp - 0x40]
call fcn.0046c284
push esp
add byte [ebp], ah
jb 0x46c278
insd dword es:[edi], dx
add byte [ecx], ch
outsb dx, byte [esi]
add byte [ecx], ah
insb byte es:[edi], dx
add byte [eax], al
add byte [edx - 1], dl
push edx
call dword [sym.imp.kernel32.dll_lstrcpyW]

Function at 0x46c2bc
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
cmp dword [0x401528], 0
je 0x46c312
pushal
mov dword [ebp - 0x60], 0x60
lea edx, [ebp - 0x60]
push edx
push dword [0x4012dc]
call dword [fcn.00401534]
mov ecx, 0x10
mov esi, 0x401014
lea edi, [ebp - 0x40]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
sub ecx, 1
jne 0x46c2f0
add word [ebp - 0x4e], 1
add word [ebp - 0x4c], 1
lea edx, [ebp - 0x60]
push edx
push dword [0x4012dc]
call dword [fcn.00401538]
popal
leave
ret
Function at 0x46ca6a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ecx
push edx
mov dword [ebp - 0x10], 0xffffffff
push 0x1000
call fcn.0046bf6e
mov dword [ebp - 8], eax
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x46cbd9
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x46cbd9
mov dword [ebp - 0xc], eax
mov eax, 0x20
neg eax
push 2
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46cbd0
push 0x1000
push dword [ebp - 8]
call fcn.0046bff6
push 0
lea edx, [ebp - 4]
push edx
push 0x20
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x46cbd0
push 0x403f88
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
jne 0x46cbd0
mov eax, 0x30
neg eax
push 2
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46cbd0
push 0x1000
push dword [ebp - 8]
call fcn.0046bff6
push 0
lea edx, [ebp - 4]
push edx
push 0x10
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x46cbd0
push dword [ebp - 8]
call dword [sym.imp.shlwapi.dll_StrToIntW]
add eax, eax
push eax
add eax, 0x30
push eax
add eax, 0x104
push eax
call fcn.0046bf6e
mov dword [ebp - 0x10], eax
pop ecx
neg ecx
push 2
push 0
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_SetFilePointer]
pop ecx
cmp eax, 0xffffffff
jne 0x46cba9
push dword [ebp - 0x10]
call fcn.0046bfdb
mov dword [ebp - 0x10], 0xffffffff
jmp 0x46cbd0
push 0
lea edx, [ebp - 4]
push edx
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_ReadFile]
cmp eax, 0
jne 0x46cbd0
push dword [ebp - 0x10]
call fcn.0046bfdb
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 8]
call fcn.0046bfdb
mov eax, dword [ebp - 0x10]
pop edx
pop ecx
leave
ret

Function at 0x46cd75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ecx
push edx
mov dword [ebp - 4], 0xffffffff
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x46cde0
mov dword [ebp - 8], eax
push 2
push 0
push 0
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46cdd7
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, eax
push 0
lea edx, [ebp - 4]
push edx
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edx
pop ecx
leave
ret 8
Function at 0x46cde9
Capabilities:
Create thread
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ecx
push edx
mov dword [0x4050c8], 0
push 0x46930c
push 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
cmp eax, 0
jne 0x46ce19
cmp byte [0x46930c], 2
jge 0x46ce23
mov eax, 0xffffffff
jmp 0x46cf70
push 0x11
push 2
push 2
call dword [sym.imp.ws2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x46ce51
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
mov eax, 0xffffffff
jmp 0x46cf70
mov dword [0x4050c8], eax
mov dword [0x4050f4], 1
push 0x4050f4
push 0x8004667e
push eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x46ce93
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
mov eax, 0xffffffff
jmp 0x46cf70
mov word [0x4692fc], 2
push 0
call dword [sym.imp.ws2_32.dll_htonl]
mov dword [0x469300], eax
push dword [0x4050cc]
call dword [sym.imp.ws2_32.dll_htons]
mov word [0x4692fe], ax
mov dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x18]
push edx
push 0x4692fc
push dword [0x4050c8]
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x46cef6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
mov eax, 0xffffffff
jmp 0x46cf70
push 0x10
lea edx, [ebp - 0x10]
push edx
call fcn.0046bff6
mov dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x10]
push edx
push dword [0x4050c8]
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x46cf3b
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
mov eax, 0xffffffff
jmp 0x46cf70
mov dword [0x4050ec], 1
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x46cfe0
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
mov ax, word [ebp - 0xe]
push eax
call dword [sym.imp.ws2_32.dll_ntohs]
pop edx
pop ecx
leave
ret
Function at 0x46d0b4
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [0x4050ec], 1
jne 0x46d150
cmp dword [0x4050d0], 0x3e8
jge 0x46d144
mov dword [ebp - 0x20], 0x10
push 0x10
lea edx, [ebp - 0x10]
push edx
call fcn.0046bff6
push 0xffff
push dword [ebp - 0x28]
call fcn.0046bff6
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
push 0
push 0xffff
push dword [ebp - 0x28]
push dword [0x4050c8]
call dword [sym.imp.ws2_32.dll_recvfrom]
cmp eax, 0
jle 0x46d144
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x28]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
add eax, 1
add eax, eax
push eax
call fcn.0046bf6e
mov dword [ebp - 0x24], eax
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x28]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
nop
call fcn.0046d0b4
or dword [eax], eax
and byte [eax], al
or eax, 0xa00
add bh, bh
push dword [ebp - 0x24]
invalid
push dword [ebp - 0x24]
call dword [sym.imp.shlwapi.dll_StrTrimW]
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_lstrlenW]
cmp eax, 0
je 0x46d144
mov dword [ebp - 0x14], eax
mov ebx, dword [0x405054]
cmp dword [ebx + 0x50], 0
je 0x46d0df
mov ebx, dword [ebx + 0x50]
jmp 0x46d0d4
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x44], eax
push 0x58
call fcn.0046bf6e
mov dword [ebx + 0x50], eax
push dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push edx
call fcn.0046d2f6
push 0
push 0
call fcn.00472f96
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call 0x46d126
and eax, 0x20007300
add byte [0x20006400], ah
add byte [ebx], dh
and byte [eax], al
and eax, 0x20006400
add byte [0x39002e00], ah
add byte [eax + eax], ah
add bh, bh
jne 0x46d111
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0x14
push dword [ebp - 0x18]
call fcn.00472db1
mov dword [ebx + 0x48], eax
add dword [0x4050d0], 1
push 1
call fcn.0046bc96
jmp 0x46d007
push dword [ebp - 0x28]
call fcn.0046bfdb
pop edx
pop ecx
pop ebx
pop eax
leave
ret