joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a34
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40a7d8], esi
push edi
jne 0x403a54
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40a7d4], esi
mov byte [0x40a7d0], al
jne 0x403aba
mov ecx, dword [0x40bd28]
test ecx, ecx
je 0x403a9b
mov eax, dword [0x40bd24]
sub eax, 4
cmp eax, ecx
jmp 0x403a94
mov eax, dword [eax]
test eax, eax
je 0x403a86
call eax
mov eax, dword [0x40bd24]
sub eax, 4
cmp eax, dword [0x40bd28]
mov dword [0x40bd24], eax
jae 0x403a7e
mov eax, 0x40a024
mov esi, 0x40a02c
cmp eax, esi
mov edi, eax
jae 0x403aba
mov eax, dword [edi]
test eax, eax
je 0x403ab3
call eax
add edi, 4
cmp edi, esi
jb 0x403aab
mov eax, 0x40a030
mov esi, 0x40a038
cmp eax, esi
mov edi, eax
jae 0x403ad9
mov eax, dword [edi]
test eax, eax
je 0x403ad2
call eax
add edi, 4
cmp edi, esi
jb 0x403aca
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x403af3
push dword [ebp + 8]
mov dword [0x40a7d8], 1
call fcn.0040399a
pop ebp
ret

Function at 0x403b35
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40a040]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40a080]
je 0x403b6a
inc eax
cmp eax, 0x13
jb 0x403b5b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a080]
jne 0x403c90
mov eax, dword [0x40a76c]
cmp eax, 1
je 0x403c68
cmp eax, edx
jne 0x403b9a
cmp dword [0x40a05c], 1
je 0x403c68
cmp ecx, 0xfc
je 0x403c90
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403bd0
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00404bc0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404930
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403c04
mov eax, edi
push eax
call fcn.00404930
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40825c
push edi
call fcn.00404cc0
add esp, 0x10
push edi
call fcn.00404930
push dword [esi + 0x40a084]
mov ebx, eax
call fcn.00404930
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404550
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404bc0
push edi
push ebx
call fcn.00404bd0
push 0x408258
push ebx
call fcn.00404bd0
push dword [esi + 0x40a084]
push ebx
call fcn.00404bd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00404ac5
add esp, 0x2c
jmp 0x403c90
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40a084]
push dword [esi]
call fcn.00404930
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00401bb5
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404619
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40bc0c]
mov eax, dword [0x40a040]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4047df
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40bc20]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4047df
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x404683
xor eax, eax
jmp 0x4047f3
test al, 0x20
je 0x404694
push 2
push edi
push edi
push ecx
call fcn.00406582
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x404769
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4047b0
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4046f6
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4046e7
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4046c9
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404736
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x404742
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4046bd
jmp 0x404744
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4047da
cmp dword [ebp + 0x3a4], edi
je 0x4047b0
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4047a2
mov dword [0x40a790], eax
jmp 0x4047e6
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404794
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x404744
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x404744
push dword [ebp + 0x3a4]
call fcn.0040646d
pop ecx
jmp 0x4047f0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4047c8
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40467c
mov dword [0x40a78c], 0x1c
mov dword [0x40a790], edi
jmp 0x4047f0
sub eax, dword [ebp - 0x7c]
jmp 0x4047f3
and dword [0x40a790], 0
mov dword [0x40a78c], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00401bb5
add ebp, 0x39c
leave
ret
Function at 0x404ac5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40a8f8], ebx
push esi
push edi
jne 0x404b45
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404b80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40a8f8], eax
je 0x404b80
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40a8fc], eax
call esi
cmp dword [0x40a798], 2
mov dword [0x40a900], eax
jne 0x404b45
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40a908], eax
je 0x404b45
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40a904], eax
mov eax, dword [0x40a904]
test eax, eax
je 0x404b8a
call eax
test eax, eax
je 0x404b71
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40a908]
test eax, eax
je 0x404b71
test byte [ebp - 8], 1
jne 0x404b8a
cmp dword [0x40a7a4], 4
jb 0x404b84
or byte [ebp + 0x12], 0x20
jmp 0x404ba9
xor eax, eax
jmp 0x404bb9
or byte [ebp + 0x12], 4
jmp 0x404ba9
mov eax, dword [0x40a8fc]
test eax, eax
je 0x404ba9
call eax
mov ebx, eax
test ebx, ebx
je 0x404ba9
mov eax, dword [0x40a900]
test eax, eax
je 0x404ba9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40a8f8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404de4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x404e12
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x404e19
cmp ebx, dword [eax + 4]
jae 0x404e19
xor eax, eax
jmp 0x405009
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x404e2a
xor eax, eax
inc eax
jmp 0x405008
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x404e40
cmp ecx, edx
jae 0x404f85
cmp dword [eax + 4], 0
je 0x404e49
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x404e31
cmp dword [ebp + 8], 0
je 0x404e6b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x404f85
cmp eax, esi
jae 0x404f85
mov eax, dword [0x40a910]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x404e90
cmp dword [esi*4 + 0x40a918], edi
je 0x404f89
inc esi
cmp esi, eax
jl 0x404e7e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405005
cmp dword [ebp - 8], 0x1000000
jne 0x405005
test byte [ebp - 0xc], 0xcc
je 0x404f0e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x405005
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405005
cmp word [eax + 0x18], 0x10b
jne 0x405005
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x405005
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404f0e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404f0e
test byte [ecx + 0x27], 0x80
jne 0x404f85
push 1
push 0x40a958
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x404e22
mov ecx, dword [0x40a910]
test ecx, ecx
mov edx, ecx
jle 0x404f42
lea eax, [ecx*4 + 0x40a914]
cmp dword [eax], edi
je 0x404f42
dec edx
sub eax, 4
test edx, edx
jg 0x404f36
test edx, edx
jne 0x404f73
push 0xf
pop ebx
cmp ecx, ebx
jg 0x404f4f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x404f67
lea eax, [edx*4 + 0x40a918]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x404f55
cmp ecx, 0x10
jge 0x404f73
inc ecx
mov dword [0x40a910], ecx
push 0
push 0x40a958
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x404e22
xor eax, eax
jmp 0x405008
test esi, esi
jle 0x404e22
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40a958
call ebx
test eax, eax
jne 0x404e22
cmp dword [esi*4 + 0x40a918], edi
je 0x404fdf
mov eax, dword [0x40a910]
lea esi, [eax - 1]
test esi, esi
jl 0x404fcd
cmp dword [esi*4 + 0x40a918], edi
je 0x404fc9
dec esi
jns 0x404fbd
test esi, esi
jge 0x404fdd
cmp eax, 0x10
jge 0x404fd8
inc eax
mov dword [0x40a910], eax
lea esi, [eax - 1]
jmp 0x404fdf
je 0x404ff7
xor ecx, ecx
test esi, esi
jl 0x404ff7
lea eax, [ecx*4 + 0x40a918]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x404fe5
push 0
push 0x40a958
call ebx
jmp 0x404e22
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407399
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404550
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407434
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40a798]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x407434
cmp eax, 1
je 0x407455
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407434
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407401
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407430
xor eax, eax
inc eax
jmp 0x407474
cmp edi, eax
jae 0x407438
xor eax, eax
jmp 0x407474
cmp eax, esi
jae 0x40743f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40a798]
jmp 0x407458
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b895e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x610
mov eax, dword [esp + 0x620]
push ebp
push esi
push edi
push eax
push str.ef_btn_light.pdic
mov ecx, 0x653220
call fcn.00419450
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 3
push bind
xor eax, eax
mov ecx, 0x100
mov edi, 0x652e20
push str.rseBtn1.btns
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404b2b
push str.rseBtn1.btns
push str.Cant_Find__s
push 0x65334c
call fcn.0040bb70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x610]
mov dword fs:[0], ecx
add esp, 0x61c
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push ebp
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x20]
push edx
push esi
call edi
push ebp
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
call edi
movzx eax, word [esp + 0x14]
push ebp
lea edx, [esp + 0x14]
push edx
shl eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call edi
movzx eax, word [esp + 0x14]
push ebp
lea edx, [esp + 0x14]
push edx
shl eax, 2
push eax
lea ecx, [esp + 0x22c]
push ecx
push esi
call edi
mov edx, dword [esp + 0x18]
lea eax, [edx + edx]
push eax
call fcn.004a99f8
mov edx, dword [esp + 0x1c]
add esp, 4
push ebp
mov ebx, eax
lea ecx, [esp + 0x14]
push ecx
lea eax, [edx + edx]
push eax
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp word [esp + 0x14], bp
jbe 0x404c48
lea ebx, [ebx]
movzx esi, word [esp + edi*2 + 0x20]
cmp dword [esi*4 + 0x652e20], ebp
jne 0x404c3a
push 0x18
call fcn.004a99fd
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov dword [esp + 0x628], ebp
je 0x404bf0
mov ecx, eax
call fcn.004049d0
jmp 0x404bf2
xor eax, eax
mov ecx, dword [esp + 0x630]
push ecx
push ebx
mov ecx, eax
mov dword [esp + 0x630], 0xffffffff
mov dword [esi*4 + 0x652e20], eax
call fcn.00404970
test eax, eax
jne 0x404c30
mov ecx, dword [esi*4 + 0x652e20]
cmp ecx, ebp
je 0x404c29
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi*4 + 0x652e20], ebp
mov eax, dword [esp + edi*4 + 0x220]
lea ebx, [ebx + eax*2]
movzx ecx, word [esp + 0x14]
inc edi
cmp edi, ecx
jl 0x404bc0
mov ecx, dword [esp + 0x620]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x61c
ret
Function at 0x40bab0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x4bb838
push eax
mov esi, ecx
call fcn.004aac87
add esp, 8
test eax, eax
mov dword [esi], eax
pop esi
jne 0x40bae5
push eax
push str.Error
push str.Debug_File_Open_Error_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004aabeb
ret 4
Function at 0x416e30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b8bce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 4]
lea eax, [ecx - 4]
push edi
mov dword [esp + 8], esi
mov dword [0x652e08], eax
mov dword [esp + 0x14], 0
mov dword [esi], 0x4bb938
call fcn.004195e0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.00419210
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 2
call fcn.00419210
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 3
call fcn.00419210
lea ecx, [esi + 0x60]
mov byte [esp + 0x14], 4
call fcn.00419400
lea ecx, [esi + 0x90]
mov byte [esp + 0x14], 5
call fcn.004490e0
lea edi, [esi + 0xd4a0]
mov ecx, edi
mov byte [esp + 0x14], 6
call fcn.0040cbc0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], 0
mov ecx, esi
mov byte [esp + 0x14], 7
call fcn.0040cc40
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x417150
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x90
push ebp
push esi
push edi
mov edi, dword [esp + 0xa0]
push 0
push 0x80
push 3
push 0
push 3
push bind
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4171aa
push edi
push str.Cant_Find__s
push 0x65334c
call fcn.0040bb70
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x90
ret 4
xor eax, eax
mov byte [esp + 0x1c], 0
mov ecx, 0x1f
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push eax
push 0x80
lea ecx, [esp + 0x28]
push ecx
push ebp
mov dword [esp + 0x20], 0
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 8
lea eax, [esp + 0x20]
push eax
push ebp
call edi
add esi, 0x14ac
mov dword [esp + 0x10], 0x52
push ebx
mov ebx, 8
push 0
lea ecx, [esp + 0x14]
push ecx
push 8
lea edx, [esi - 0x1480]
push edx
push ebp
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 8
push esi
push ebp
call edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 8
lea edx, [esi + 0x1480]
push edx
push ebp
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 8
lea ecx, [esi + 0x2900]
push ecx
push ebp
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 8
lea eax, [esi + 0x3d80]
push eax
push ebp
call edi
add esi, 8
dec ebx
jne 0x417206
dec dword [esp + 0x14]
jne 0x417201
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x90
ret 4
Function at 0x4172c0
Capabilities:
Write clipboard data

Disassembly:
push ebx
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41731e
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [esp + 0x10]
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4172e6
sub ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
ret 4

Function at 0x417390
Capabilities:
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4b8c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
xor ebx, ebx
push esi
push ebx
push 0x4bb448
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00409960
push 1
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x41740d
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x14]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00409870
cmp dword [esp + 0x24], 0x10
jb 0x417480
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x417478
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, ebx
je 0x41744c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x41744c
mov ecx, eax
push edi
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x417430
sub ecx, edi
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00409960
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
mov esi, dword [esp + 0x38]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x14]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00409870
cmp dword [esp + 0x24], 0x10
jb 0x417480
mov eax, dword [esp + 0x10]
push eax
call fcn.004aa039
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4

Function at 0x417fd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8c8b
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov ebx, ecx
lea ecx, [edi - 1]
xor eax, eax
test ecx, ecx
jle 0x418009
mov dl, byte [esp + 0x24]
nop
xor byte [eax + esi + 1], dl
inc eax
cmp eax, ecx
jl 0x418000
push 0xc
call fcn.004a99fd
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x41802e
push edi
push esi
mov ecx, eax
call fcn.00417ca0
jmp 0x418030
xor eax, eax
push eax
mov ecx, ebx
mov dword [esp + 0x18], 0xffffffff
call fcn.00417e10
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x418110
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, dword [esp + 0x198]
test esi, esi
jne 0x418126
lea esi, [esp + 4]
push esi
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x418154
cmp byte [esi], 2
jne 0x41814f
cmp byte [esi + 1], 2
jne 0x41814f
mov eax, 1
pop esi
add esp, 0x190
ret 4
call sub.WS2_32.dll_WSACleanup
xor eax, eax
pop esi
add esp, 0x190
ret 4

Function at 0x4182e0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
mov dword [esp + 4], eax
push edi
mov edi, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
push esi
mov word [esp + 0xe], ax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x418337
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x418359
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov eax, dword [edi + 4]
push 0x10
lea edx, [esp + 0xc]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
mov eax, ecx
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
Function at 0x4190a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push bind
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea ecx, [esp + 0x10]
push ecx
push 0xe
lea edx, [esp + 0x20]
mov ebx, eax
push edx
push ebx
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x419106
cmp word [esp + 0x14], 0x4d42
je 0x419111
push ebx
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret 4
push ebp
mov ebp, dword [esp + 0x1a]
add ebp, 0xfffffff2
push ebp
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov esi, eax
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
pop ebp
je 0x41916a
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret 4
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov edx, dword [esi]
add edx, esi
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4191a1
mov cx, word [esi + 0xe]
cmp cx, 9
jae 0x4191a1
mov eax, 1
shl eax, cl
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 4]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx + 0x20]
test edx, edx
jne 0x4191b8
mov dword [ecx + 0x20], eax
mov edx, dword [edi + 0xc]
mov ecx, dword [edx]
lea edx, [ecx + eax*4]
add edx, esi
mov dword [edi + 0x14], edx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret 4