joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5be7e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x161000]
push edi
jmp 0x5be7fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5be801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5be7f0
mov eax, 1
add ebx, ebx
jne 0x5be813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5be824
jne 0x5be843
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5be843
dec eax
add ebx, ebx
jne 0x5be830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5be808
add ebx, ebx
jne 0x5be83f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5be895
xor ecx, ecx
sub eax, 3
jb 0x5be85b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5be8ca
sar eax, 1
mov ebp, eax
jmp 0x5be866
add ebx, ebx
jne 0x5be866
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5be834
inc ecx
add ebx, ebx
jne 0x5be874
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5be834
add ebx, ebx
jne 0x5be881
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5be876
jne 0x5be892
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5be876
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5be8b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5be8a6
jmp 0x5be7f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5be8b4
add edi, ecx
jmp 0x5be7f6
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5be8d2
cmp byte [edi], 0x11
jne 0x5be8d2
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 0x5be8d7
lea edi, [esi + 0x1b7000]
mov eax, dword [edi]
or eax, eax
je 0x5be94f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29778c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x297908]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5be904
mov ecx, edi
jns 0x5be933
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 + 0x29790c]
or eax, eax
je 0x5be949
mov dword [ebx], eax
add ebx, 4
jmp 0x5be921
call dword [esi + 0x29791c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5be980
cmp al, 0xef
ja 0x5be973
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5be955
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5be962
mov ebp, dword [esi + 0x297910]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5be9b4
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219

Function at 0x401720
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4050ff], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401767
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x401fad
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x405364]
test eax, eax
je 0x401fc6
call eax
test eax, eax
jne 0x401fc6
push 0xfffffffffffffffe
jmp 0x401fe0
push 1
push 0x405010
push 0x405008
call fcn.00401b91
add esp, 0xc
test eax, eax
je 0x401fe6
push 0xfffffffffffffffd
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push 0
push 0x405004
push section..data
call fcn.00401b91
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
jne 0x40200c
mov esi, 0x4049c2
mov cl, 0x20
jmp 0x402015
cmp al, 0x20
ja 0x40201f
inc esi
mov al, byte [esi]
test al, al
jne 0x402010
cmp al, 0x20
jbe 0x402036
mov al, byte [esi]
cmp al, 0x22
jne 0x402028
xor cl, 0x20
inc esi
mov al, byte [esi]
cmp al, cl
ja 0x402021
jmp 0x402036
cmp al, cl
ja 0x40203c
inc esi
mov al, byte [esi]
test al, al
jne 0x402031
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test eax, 0xa0d0a0d
sub eax, 0x54524357
sub eax, 0xa0d0a0d
test byte [ebp - 0x18], 1
je 0x402065
movzx eax, word [ebp - 0x14]
jmp 0x402068
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040209d
pop ecx
pop esi
leave
ret

Function at 0x40209d
Capabilities:
Terminate process

Disassembly:
call fcn.004020e7
push 0
push 0x405018
push 0x405014
call fcn.00401b91
push 0
push 0x405020
push 0x40501c
call fcn.00401b91
add esp, 0x18
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40172b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x487ba4]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401771
mov eax, dword [esp]
cmp al, 2
jne 0x40176b
shr eax, 8
cmp al, 2
jne 0x40176b
xor eax, eax
inc eax
jmp 0x401773
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0044c18b
mov esp, ebp
pop ebp
ret

Function at 0x4017ae
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push 0x16c
mov eax, 0x46c6fc
call fcn.004515c0
mov esi, ecx
mov dword [ebp - 0x30], esi
call fcn.00401926
push 6
xor edi, edi
inc edi
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4017e3
xor eax, eax
jmp 0x40191e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 0x28], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x401810
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4017dc
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x24], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edi, edi
cmp dword [ebp - 0x24], edi
jge 0x401857
cmp eax, 0x2733
jne 0x4017dc
push 5
pop eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x178]
push eax
push edi
push edi
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x178], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x401890
dec dword [ebp - 0x24]
jne 0x401863
cmp dword [ebp - 0x178], edi
je 0x401807
lea eax, [ebp - 0x28]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 0x28], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x401807
mov eax, dword [ebp + 8]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x54]
mov dword [esi + 4], ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0xc], 1
call fcn.00401685
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.00416b93
pop ecx
push 0xffffffffffffffff
add esi, 0x24
push esi
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00401dec
push edi
push 1
lea esi, [ebp - 0x70]
call fcn.00401e74
push edi
push 1
lea ecx, [ebp - 0x54]
call fcn.0040150f
mov eax, dword [ebp - 0x30]
mov cx, word [ebp + 0xc]
mov word [eax + 0x18], cx
mov dword [eax + 0x1c], 5
xor eax, eax
inc eax
call fcn.00451643
ret 8
Function at 0x401942
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [ebp + 8], edi
je 0x4019cd
cmp dword [ebp + 0xc], edi
jl 0x4019cd
cmp dword [esi + 0xc], edi
je 0x4019cd
mov eax, dword [esi + 4]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 8], 0x3c
mov dword [ebp - 4], edi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or eax, 0xffffffff
cmp ebx, eax
je 0x4019d0
cmp ebx, edi
je 0x4019d0
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, edi
jne 0x4019c2
call fcn.00401926
jmp 0x4019c9
or eax, 0xffffffff
cmp ebx, eax
je 0x4019d0
mov eax, ebx
jmp 0x4019d0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401aaa
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
xor eax, eax
push edi
xor edi, edi
inc eax
cmp dword [ebp + 8], edi
je 0x401b31
cmp dword [ebp + 0xc], eax
jl 0x401b31
cmp dword [esi + 0xc], edi
jne 0x401acc
xor eax, eax
jmp 0x401b31
mov dword [ebp - 0x10c], eax
mov eax, dword [esi + 4]
push 0xfc
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x104]
push edi
push eax
mov dword [ebp - 8], 0x1e
mov dword [ebp - 4], edi
call fcn.00451670
add esp, 0xc
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10c]
push eax
push edi
push edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x401ac8
cmp eax, edi
je 0x401ac8
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
leave
ret 8

Function at 0x401b36
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x487ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x401b5f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x401b63
xor eax, eax
jmp 0x401b7a
lea edi, [eax + eax]
mov eax, edi
call fcn.00452110
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.004021bf
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x401b90
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp eax, ebx
je 0x401b90
mov ebx, dword [eax]
mov eax, ebx
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c18b
leave
ret 4
Function at 0x402275
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40228c
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4022c1
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4022bd
cmp edi, eax
jae 0x4022c1
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4022af
cmp edi, eax
jb 0x4022c5
xor eax, eax
jmp 0x4022ce
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x404707
Capabilities:
Create process on windows

Disassembly:
push 0x44
mov eax, 0x46d942
call fcn.00451557
mov esi, ecx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
xor edi, edi
inc edi
push edi
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4047b5
push 0x38
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.00451670
add esp, 0xc
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], ebx
call fcn.0041743b
mov dword [ebp - 0x44], str.runas
test eax, eax
jne 0x40476f
mov dword [ebp - 0x44], str.open
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [ebp - 0x18]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0x14]
jmp 0x4047b8
or eax, 0xffffffff
call fcn.0045162f
ret
Function at 0x404cae
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38d4
call fcn.00453cf0
mov eax, dword [0x487ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x38d0], ebx
mov dword [ebp - 0x38c8], ebx
push dword [ebp - 0x38c8]
lea eax, [ebp - 0x5f0]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38cc], eax
cmp eax, 0xffffffff
je 0x404e84
xor eax, eax
lea edi, [ebp - 0x38c4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x2710
push edi
lea eax, [ebp - 0x30e8]
push ebx
push eax
mov dword [ebp - 0x38d4], ebx
mov dword [ebp - 0x38c4], ebx
mov dword [ebp - 0x38c0], ebx
call fcn.00451670
add esp, 0xc
push ebx
lea eax, [ebp - 0x38d4]
push eax
push edi
lea eax, [ebp - 0x30e8]
push eax
push 0xc
lea eax, [ebp - 0x38c4]
push eax
push 0x2d1400
push dword [ebp - 0x38cc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404e72
mov eax, dword [ebp - 0x30dc]
push ebx
lea esi, [ebp - 0x34d0]
lea ecx, [ebp - 0x30e8]
call fcn.00404b62
mov eax, dword [ebp - 0x30d8]
push ebx
lea esi, [ebp - 0x9d8]
lea ecx, [ebp - 0x30e8]
call fcn.00404b62
mov eax, dword [ebp - 0x30d4]
push ebx
lea esi, [ebp - 0x38b8]
lea ecx, [ebp - 0x30e8]
call fcn.00404b62
mov eax, dword [ebp - 0x30d0]
push 1
lea esi, [ebp - 0x3f0]
lea ecx, [ebp - 0x30e8]
call fcn.00404b62
add esp, 0x10
cmp byte [0x48b278], bl
jne 0x404e3c
movsx eax, byte [ebp - 0x3f0]
push eax
call fcn.0044ca9e
pop ecx
test eax, eax
jne 0x404e0a
movsx eax, byte [ebp - 0x3dd]
push eax
call fcn.0044ca9e
pop ecx
test eax, eax
je 0x404e3c
xor eax, eax
mov cl, byte [ebp + eax - 0x3f0]
mov byte [eax + 0x48b278], cl
inc eax
cmp cl, bl
jne 0x404e0c
xor eax, eax
mov cl, byte [ebp + eax - 0x9d8]
mov byte [eax + 0x48ae78], cl
inc eax
cmp cl, bl
jne 0x404e20
mov dword [ebp - 0x38d0], 1
push edi
lea eax, [ebp - 0x30e8]
push ebx
push eax
call fcn.00451670
add esp, 0xc
push ebx
lea eax, [ebp - 0x38d4]
push eax
push edi
lea eax, [ebp - 0x30e8]
push eax
push ebx
push ebx
push 0x700a0
push dword [ebp - 0x38cc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x404e78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x38cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x38c8]
cmp dword [ebp - 0x38c8], 0x10
jl 0x404cd6
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c18b
leave
ret
Function at 0x40523f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x487ba4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x128], 0
push esi
push edi
mov esi, 0x114
push esi
mov dword [ebp - 0x124], eax
xor edi, edi
lea eax, [ebp - 0x120]
push edi
push eax
mov byte [0x48b278], 0
call fcn.00451670
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 2
jne 0x4052c1
call fcn.00404865
test eax, eax
jne 0x4052dd
call fcn.00404fce
test eax, eax
jne 0x4052dd
call fcn.00404cae
test eax, eax
jne 0x4052dd
call fcn.00404a20
jmp 0x4052dd
xor esi, esi
test edi, edi
jne 0x4052dd
cmp byte [0x48b278], 0
jne 0x4052dd
call fcn.00404eac
inc esi
cmp esi, 0xa
mov edi, eax
jl 0x4052c3
mov ecx, dword [ebp - 0x124]
push 0x48b278
call fcn.00401685
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x124]
pop edi
xor ecx, ebp
pop esi
call fcn.0044c18b
leave
ret

Function at 0x405373
Capabilities:
Resolve dns

Disassembly:
push 0x50
mov eax, 0x46d8fd
call fcn.004515c0
cmp dword [ebp + 8], 0
je 0x405396
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x40539a
xor eax, eax
jmp 0x4053b1
lea edi, [eax + eax]
mov eax, edi
call fcn.00452110
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.004021bf
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40543a
push dword [ebp + 8]
lea esi, [ebp - 0x34]
call fcn.004070da
and dword [ebp - 4], 0
mov eax, esi
push eax
call fcn.004070f9
mov edi, eax
call fcn.0040762b
or dword [ebp - 4], 0xffffffff
push 0
push 1
call fcn.00401e74
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40543a
and dword [ebp - 0x14], 0
mov eax, dword [eax]
push dword [ebp + 8]
lea esi, [ebp - 0x34]
mov dword [ebp - 0x18], eax
call fcn.004070da
lea eax, [ebp - 0x18]
push eax
push ecx
mov eax, esi
push eax
mov dword [ebp - 4], 1
call fcn.004070f9
pop ecx
push eax
lea ebx, [ebp - 0x5c]
call fcn.004072cd
or dword [ebp - 4], 0xffffffff
push 0
push 1
call fcn.00401e74
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x4053f6
push dword [ebp + 8]
lea esi, [ebp - 0x50]
call fcn.004070da
mov eax, esi
push eax
mov dword [ebp - 4], 2
call fcn.004070f9
mov edi, dword [eax + 0x1c]
push 0
push 1
call fcn.00401e74
test edi, edi
setne al
lea esp, [ebp - 0x6c]
call fcn.00451643
ret 4
Function at 0x40634c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
push esi
mov esi, ecx
jne 0x406366
inc eax
mov dword [esi + 0x11c], eax
jmp 0x4063f1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
mov dword [esi + 0x90], eax
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [esi + 0x94], eax
call fcn.00406d42
lea eax, [esi + 0x88]
cmp dword [eax + 4], 0
jl 0x4063b6
jg 0x406397
cmp dword [eax], 0
jbe 0x4063b6
mov edi, dword [eax + 4]
push ebx
mov ebx, dword [eax]
mov eax, esi
call fcn.00406d80
cmp edx, edi
jl 0x4063b5
jg 0x4063ae
cmp eax, ebx
jbe 0x4063b5
push edi
push ebx
call fcn.00406d42
pop ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.00406cc5
lea eax, [ebp + 0x14]
push eax
xor edi, edi
push edi
push esi
push 0x4062bf
push 0x800000
push edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x78], eax
pop edi
je 0x4063ef
cmp eax, 0xffffffff
je 0x4063ef
xor eax, eax
inc eax
jmp 0x4063f1
xor eax, eax
pop esi
pop ebp
ret 0x18

Function at 0x4067e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
cmp dword [ebp + 8], eax
je 0x40685c
cmp dword [ebp + 0xc], eax
jl 0x40685c
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40685c
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x10], eax
mov eax, esi
mov dword [ebp - 0xc], edx
call fcn.00406cf2
mov edi, eax
add edi, dword [ebp - 0x10]
mov ebx, edx
adc ebx, dword [ebp - 0xc]
push ebx
push edi
call fcn.00406cc5
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x406856
push dword [esi + 0x70]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
push edi
push dword [esi + 8]
call eax
add esp, 0x18
mov eax, edi
mov edx, ebx
jmp 0x406861
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40b511
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
call fcn.0040cfe0
test eax, eax
je 0x40b563
push 0x10
call fcn.0044c232
xor edx, edx
pop ecx
cmp eax, edx
je 0x40b53b
mov dword [eax + 0xc], edx
jmp 0x40b53d
xor eax, eax
or dword [eax], 0xffffffff
mov dword [eax + 8], 7
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0xa0]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xa4]
cmp ecx, edx
je 0x40b563
mov edi, dword [ecx]
push edx
push eax
call dword [edi]
push 6
pop eax
cmp dword [esi + 0x50], eax
je 0x40b56e
mov dword [esi + 0x50], eax
and dword [esp + 0xc], 0
mov edi, esi
call fcn.0040bf08
mov dword [esp + 0x10], eax
test eax, eax
je 0x40b5a9
cmp eax, 1
je 0x40b699
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040c668
cmp eax, 0xd
je 0x40b6af
cmp eax, 0xa
je 0x40b6af
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x40b609
mov eax, esi
call fcn.0040d020
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40b5f0
xor ecx, ecx
cmp dword [esi + 0x50], ecx
jle 0x40b5df
mov eax, dword [esi + 0x58]
add eax, 0x11c
cmp dword [eax], 0
je 0x40b5e8
inc ecx
add eax, 0x128
cmp ecx, dword [esi + 0x50]
jl 0x40b5cf
push 1
call fcn.0040cffd
jmp 0x40b5f0
mov dword [esp + 0x10], 0xe
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040c668
cmp eax, 0xd
je 0x40b6af
mov ebx, dword [esp + 0x10]
cmp ebx, 0xc
je 0x40b613
cmp ebx, 0xb
jne 0x40b642
push dword [esi + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
mov eax, dword [esi + 0x44]
cmp dword [eax - 0xc], 0
je 0x40b642
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0040c22a
push dword [eax]
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004026ee
call fcn.0040be27
mov edi, dword [esp + 0xc]
cmp edi, 9
je 0x40b6b3
test ebx, ebx
je 0x40b6b3
cmp ebx, 0xb
jne 0x40b660
and dword [esi + 0x9c], 0
add edi, 3
xor ebx, ebx
test edi, edi
jle 0x40b688
push 0x64
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b6af
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, edi
jl 0x40b669
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 0xa
jl 0x40b573
jmp 0x40b6cf
push 1
call fcn.0040cffd
mov eax, esi
call fcn.0040cfe0
test eax, eax
je 0x40b6cf
push 0
jmp 0x40b6bf
xor eax, eax
jmp 0x40b6d2
mov eax, esi
call fcn.0040cfe0
test eax, eax
je 0x40b6cf
push ebx
push 2
push dword [esi + 0xa0]
push 0xffffffffffffffff
push esi
call fcn.0040d492
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret